]> git.sesse.net Git - ffmpeg/commitdiff
Correctly decode some Avid AV1x samples, fixes issue 1684.
authorCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Sat, 16 Jan 2010 10:46:45 +0000 (10:46 +0000)
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Sat, 16 Jan 2010 10:46:45 +0000 (10:46 +0000)
Originally committed as revision 21241 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/rawdec.c

index fe96440fcef6f4030174c7774989f7000890a438..20c21263b55dfef33b387f45ae33156eb6a56288 100644 (file)
@@ -137,6 +137,9 @@ static int raw_decode(AVCodecContext *avctx,
         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;