# HG changeset patch # User cehoyos # Date 1265151476 0 # Node ID 0f3a097958403bd3ed0930e079e9f507b1022a45 # Parent 327019a2d156e698c8c33535022de1e113cb2d4e Fix r21223: AVup samples (issue 1685) need a buf offset like AV1x (issue 1684). diff -r 327019a2d156 -r 0f3a09795840 rawdec.c --- a/rawdec.c Mon Feb 01 09:53:37 2010 +0000 +++ b/rawdec.c Tue Feb 02 22:57:56 2010 +0000 @@ -137,7 +137,8 @@ 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))