[FFmpeg-devel] [PATCH]MLP in mpeg

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Mar 26 20:06:29 CEST 2012


On Mon, Mar 26, 2012 at 03:38:05PM +0200, Carl-Eugen Hoyos wrote:
> -    if ((startcode >= 0xa0 && startcode <= 0xaf) ||
> +    if (startcode == 0xa1) {
> +        avio_skip(s->pb, header_length);
> +        len -= header_length;

You should probably check that len > header_length.


More information about the ffmpeg-devel mailing list