Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
f5aad350
Commit
f5aad350
authored
Dec 12, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/wavdec: add support for 'id3 ' chunk
Fixes #5700.
parent
32601fb8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
wavdec.c
libavformat/wavdec.c
+13
-0
No files found.
libavformat/wavdec.c
View file @
f5aad350
...
...
@@ -34,6 +34,7 @@
#include "avformat.h"
#include "avio.h"
#include "avio_internal.h"
#include "id3v2.h"
#include "internal.h"
#include "metadata.h"
#include "pcm.h"
...
...
@@ -500,6 +501,18 @@ static int wav_read_header(AVFormatContext *s)
ff_read_riff_info
(
s
,
size
-
4
);
}
break
;
case
MKTAG
(
'I'
,
'D'
,
'3'
,
' '
):
case
MKTAG
(
'i'
,
'd'
,
'3'
,
' '
):
{
ID3v2ExtraMeta
*
id3v2_extra_meta
=
NULL
;
ff_id3v2_read_dict
(
pb
,
&
s
->
internal
->
id3v2_meta
,
ID3v2_DEFAULT_MAGIC
,
&
id3v2_extra_meta
);
if
(
id3v2_extra_meta
)
{
ff_id3v2_parse_apic
(
s
,
&
id3v2_extra_meta
);
ff_id3v2_parse_chapters
(
s
,
&
id3v2_extra_meta
);
ff_id3v2_parse_priv
(
s
,
&
id3v2_extra_meta
);
}
ff_id3v2_free_extra_meta
(
&
id3v2_extra_meta
);
}
break
;
}
/* seek to next tag unless we know that we'll run into EOF */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment