[FFmpeg-devel] [PATCH 2/3] id3v2: skip encrypted/compressed frames

Michael Niedermayer michaelni
Mon Dec 6 21:48:25 CET 2010


On Mon, Dec 06, 2010 at 09:33:08AM +0100, Anton Khirnov wrote:
> ---
>  libavformat/id3v2.c |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
> 
> diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c
> index 4115f8f..2af1b03 100644
> --- a/libavformat/id3v2.c
> +++ b/libavformat/id3v2.c
> @@ -229,7 +229,10 @@ void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags)
>              tlen -= 4;
>          }
>  
> -        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') {

lgtm

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Let us carefully observe those good qualities wherein our enemies excel us
and endeavor to excel them, by avoiding what is faulty, and imitating what
is excellent in them. -- Plutarch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101206/25531489/attachment.pgp>



More information about the ffmpeg-devel mailing list