mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
id3v2: skip encrypted/compressed frames
Originally committed as revision 25903 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
7a07d158bd
commit
407d3d5a3a
@ -224,7 +224,10 @@ void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags)
|
||||
|
||||
next = url_ftell(s->pb) + tlen;
|
||||
|
||||
if (tag[0] == 'T') {
|
||||
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);
|
||||
} else if (tag[0] == 'T') {
|
||||
if (unsync || tunsync) {
|
||||
int i, j;
|
||||
av_fast_malloc(&buffer, &buffer_size, tlen);
|
||||
|
Loading…
Reference in New Issue
Block a user