Commit 864a0742 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Correctly decode some Avid AV1x samples, fixes issue 1684.

Originally committed as revision 21241 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent dd08b83c
......@@ -137,6 +137,9 @@ static int raw_decode(AVCodecContext *avctx,
buf= dst;
}
if(avctx->codec_tag == MKTAG('A', 'V', '1', 'x'))
buf += buf_size - context->length;
if(buf_size < context->length - (avctx->pix_fmt==PIX_FMT_PAL8 ? 256*4 : 0))
return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment