mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
id3v2.4.0 uses syncsafe integers for sizes of frames.
Fixes issue1234 Fixes regression introduced in r19275 Originally committed as revision 19291 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
29024501b7
commit
3fd5a75b07
@ -155,7 +155,10 @@ void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags)
|
|||||||
while (len >= taghdrlen) {
|
while (len >= taghdrlen) {
|
||||||
if (isv34) {
|
if (isv34) {
|
||||||
tag = get_be32(s->pb);
|
tag = get_be32(s->pb);
|
||||||
|
if(version==3){
|
||||||
tlen = get_be32(s->pb);
|
tlen = get_be32(s->pb);
|
||||||
|
}else
|
||||||
|
tlen = get_size(s->pb, 4);
|
||||||
get_be16(s->pb); /* flags */
|
get_be16(s->pb); /* flags */
|
||||||
} else {
|
} else {
|
||||||
tag = get_be24(s->pb);
|
tag = get_be24(s->pb);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user