mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
Correctly decode some Avid AV1x samples, fixes issue 1684.
Originally committed as revision 21241 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
dd08b83c87
commit
864a074213
@ -137,6 +137,9 @@ static int raw_decode(AVCodecContext *avctx,
|
|||||||
buf= dst;
|
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))
|
if(buf_size < context->length - (avctx->pix_fmt==PIX_FMT_PAL8 ? 256*4 : 0))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user