[FFmpeg-devel] [PATCH] lavf/wavdec: skip padding byte

Derek Buitenhuis derek.buitenhuis at gmail.com
Mon Apr 8 19:33:21 CEST 2013


On 2013-04-08 1:28 PM, Matthieu Bouron wrote:
> Fixes ticket #2417.
> ---
>  libavformat/wavdec.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)

Please provide an actual explanation of what is being fixed.

> -        avio_skip(pb, size);
> +        avio_skip(pb, size + (size & 1));

So um, why?

> +        /* skip padding byte */
> +        next_tag_ofs += (next_tag_ofs < INT64_MAX && next_tag_ofs & 1);

This seems OK.

- Derek


More information about the ffmpeg-devel mailing list