[FFmpeg-cvslog] r21241 - trunk/libavcodec/rawdec.c

cehoyos subversion
Sat Jan 16 11:46:45 CET 2010


Author: cehoyos
Date: Sat Jan 16 11:46:45 2010
New Revision: 21241

Log:
Correctly decode some Avid AV1x samples, fixes issue 1684.

Modified:
   trunk/libavcodec/rawdec.c

Modified: trunk/libavcodec/rawdec.c
==============================================================================
--- trunk/libavcodec/rawdec.c	Sat Jan 16 11:43:53 2010	(r21240)
+++ trunk/libavcodec/rawdec.c	Sat Jan 16 11:46:45 2010	(r21241)
@@ -137,6 +137,9 @@ static int raw_decode(AVCodecContext *av
         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;
 



More information about the ffmpeg-cvslog mailing list