Commit 36cbdc95 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Fix r21223: AVup samples (issue 1685) need a buf offset like AV1x (issue 1684).

Originally committed as revision 21617 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 48ff3f7c
...@@ -137,7 +137,8 @@ static int raw_decode(AVCodecContext *avctx, ...@@ -137,7 +137,8 @@ static int raw_decode(AVCodecContext *avctx,
buf= dst; buf= dst;
} }
if(avctx->codec_tag == MKTAG('A', 'V', '1', 'x')) if(avctx->codec_tag == MKTAG('A', 'V', '1', 'x') ||
avctx->codec_tag == MKTAG('A', 'V', 'u', 'p'))
buf += buf_size - context->length; 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))
......
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