|
|
@@ -788,8 +788,10 @@ void ff_id3v2_read(AVFormatContext *s, const char *magic, ID3v2ExtraMeta **extra |
|
|
/* save the current offset in case there's nothing to read/skip */ |
|
|
/* save the current offset in case there's nothing to read/skip */ |
|
|
off = avio_tell(s->pb); |
|
|
off = avio_tell(s->pb); |
|
|
ret = avio_read(s->pb, buf, ID3v2_HEADER_SIZE); |
|
|
ret = avio_read(s->pb, buf, ID3v2_HEADER_SIZE); |
|
|
if (ret != ID3v2_HEADER_SIZE) |
|
|
|
|
|
|
|
|
if (ret != ID3v2_HEADER_SIZE) { |
|
|
|
|
|
avio_seek(s->pb, off, SEEK_SET); |
|
|
break; |
|
|
break; |
|
|
|
|
|
} |
|
|
found_header = ff_id3v2_match(buf, magic); |
|
|
found_header = ff_id3v2_match(buf, magic); |
|
|
if (found_header) { |
|
|
if (found_header) { |
|
|
/* parse ID3v2 header */ |
|
|
/* parse ID3v2 header */ |
|
|
|