changeset 10895:1cebb3ea364b libavcodec

Correctly decode some Avid AV1x samples, fixes issue 1684.
author cehoyos
date Sat, 16 Jan 2010 10:46:45 +0000
parents 4b2227257766
children f112b4d030fa
files rawdec.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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;