[FFmpeg-devel] [PATCH] avcodec/wmv2dec: Check end of bitstream in parse_mb_skip() and ff_wmv2_decode_mb()

Derek Buitenhuis derek.buitenhuis at gmail.com
Thu Oct 26 16:20:28 EEST 2017


On 10/26/2017 11:47 AM, Michael Niedermayer wrote:
> +    if (get_bits_left(&s->gb) < 0) {
> +        return AVERROR_INVALIDDATA;
> +    }

Is this possible? I don't see where get_bits.h is include
in this (probably deep in some other header), so can't see
if it's using the unchecked reader.

- Derek


More information about the ffmpeg-devel mailing list