Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
ecd36004
Commit
ecd36004
authored
Jan 27, 2017
by
Chris Moeller
Committed by
Michael Niedermayer
Jan 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat: fix ID3v2 parser for v2.2 comment frames
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
b9f2f932
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
id3v2.c
libavformat/id3v2.c
+5
-2
No files found.
libavformat/id3v2.c
View file @
ecd36004
...
...
@@ -823,6 +823,7 @@ static void id3v2_parse(AVIOContext *pb, AVDictionary **metadata,
const
ID3v2EMFunc
*
extra_func
=
NULL
;
unsigned
char
*
uncompressed_buffer
=
NULL
;
av_unused
int
uncompressed_buffer_size
=
0
;
const
char
*
comm_frame
;
av_log
(
s
,
AV_LOG_DEBUG
,
"id3v2 ver:%d flags:%02X len:%d
\n
"
,
version
,
flags
,
len
);
...
...
@@ -834,12 +835,14 @@ static void id3v2_parse(AVIOContext *pb, AVDictionary **metadata,
}
isv34
=
0
;
taghdrlen
=
6
;
comm_frame
=
"COM"
;
break
;
case
3
:
case
4
:
isv34
=
1
;
taghdrlen
=
10
;
comm_frame
=
"COMM"
;
break
;
default:
...
...
@@ -950,7 +953,7 @@ static void id3v2_parse(AVIOContext *pb, AVDictionary **metadata,
/* check for text tag or supported special meta tag */
}
else
if
(
tag
[
0
]
==
'T'
||
!
memcmp
(
tag
,
"USLT"
,
4
)
||
!
memcmp
(
tag
,
"COMM"
,
4
)
||
!
strcmp
(
tag
,
comm_frame
)
||
(
extra_meta
&&
(
extra_func
=
get_extra_meta_func
(
tag
,
isv34
))))
{
pbx
=
pb
;
...
...
@@ -1018,7 +1021,7 @@ static void id3v2_parse(AVIOContext *pb, AVDictionary **metadata,
read_ttag
(
s
,
pbx
,
tlen
,
metadata
,
tag
);
else
if
(
!
memcmp
(
tag
,
"USLT"
,
4
))
read_uslt
(
s
,
pbx
,
tlen
,
metadata
);
else
if
(
!
memcmp
(
tag
,
"COMM"
,
4
))
else
if
(
!
strcmp
(
tag
,
comm_frame
))
read_comment
(
s
,
pbx
,
tlen
,
metadata
);
else
/* parse special meta tag */
...
...
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