diff rawdec.c @ 10895:1cebb3ea364b libavcodec

Correctly decode some Avid AV1x samples, fixes issue 1684.
author cehoyos
date Sat, 16 Jan 2010 10:46:45 +0000
parents 1184d065c26a
children 0f3a09795840
line wrap: on
line diff
--- a/rawdec.c	Sat Jan 16 10:41:52 2010 +0000
+++ b/rawdec.c	Sat Jan 16 10:46:45 2010 +0000
@@ -137,6 +137,9 @@
         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))
         return -1;