mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
id3v2: skip data length indicator
Originally committed as revision 25926 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
ded38a9bf0
commit
a152c77f26
@ -224,6 +224,11 @@ void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags)
|
||||
|
||||
next = url_ftell(s->pb) + tlen;
|
||||
|
||||
if (tflags & ID3v2_FLAG_DATALEN) {
|
||||
get_be32(s->pb);
|
||||
tlen -= 4;
|
||||
}
|
||||
|
||||
if (tflags & (ID3v2_FLAG_ENCRYPTION | ID3v2_FLAG_COMPRESSION)) {
|
||||
av_log(s, AV_LOG_WARNING, "Skipping encrypted/compressed ID3v2 frame %s.\n", tag);
|
||||
url_fskip(s->pb, tlen);
|
||||
|
Loading…
Reference in New Issue
Block a user