[FFmpeg-devel] [PATCH] avcodec/cinepak: check the first slice against the input size before obtaining a frame

Tomas Härdin tjoppen at acc.umu.se
Thu Mar 28 12:39:46 EET 2019


> +    data += 10 + s->sega_film_skip_bytes;
> +
> +    for (i=0; i < FFMIN(num_strips, 1); i++) {

if (num_strips) maybe? Or is this supposed to be FFMAX perhaps?

> +        int strip_size = AV_RB24 (&data[1]);
> +        if (strip_size < 12 || eod - data < strip_size - strip_size
> * (int64_t)s->avctx->discard_damaged_percentage / 100)

Kind of a long line

/Tomas


More information about the ffmpeg-devel mailing list