Commit 3d71c59d authored by cehoyos's avatar cehoyos

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21617 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 70625b7a
......@@ -137,7 +137,8 @@ static int raw_decode(AVCodecContext *avctx,
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;
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