changeset 11072:0f3a09795840 libavcodec

Fix r21223: AVup samples (issue 1685) need a buf offset like AV1x (issue 1684).
author cehoyos
date Tue, 02 Feb 2010 22:57:56 +0000
parents 327019a2d156
children 67b3d3174b41
files rawdec.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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))