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
ddb44312
Commit
ddb44312
authored
Mar 31, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
id3v2: fix skipping extended header in id3v2.4
In v2.4, the length includes the length field itself.
parent
420d1df2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
id3v2.c
libavformat/id3v2.c
+11
-2
No files found.
libavformat/id3v2.c
View file @
ddb44312
...
@@ -561,8 +561,17 @@ static void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t
...
@@ -561,8 +561,17 @@ static void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t
unsync
=
flags
&
0x80
;
unsync
=
flags
&
0x80
;
if
(
isv34
&&
flags
&
0x40
)
/* Extended header present, just skip over it */
if
(
isv34
&&
flags
&
0x40
)
{
/* Extended header present, just skip over it */
avio_skip
(
s
->
pb
,
get_size
(
s
->
pb
,
4
));
int
extlen
=
get_size
(
s
->
pb
,
4
);
if
(
version
==
4
)
extlen
-=
4
;
// in v2.4 the length includes the length field we just read
if
(
extlen
<
0
)
{
reason
=
"invalid extended header length"
;
goto
error
;
}
avio_skip
(
s
->
pb
,
extlen
);
}
while
(
len
>=
taghdrlen
)
{
while
(
len
>=
taghdrlen
)
{
unsigned
int
tflags
=
0
;
unsigned
int
tflags
=
0
;
...
...
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