[FFmpeg-cvslog] ffv1dec: support decoding older 1.3 bitstream variant

Michael Niedermayer git at videolan.org
Wed Sep 26 17:38:56 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Sep 26 17:04:29 2012 +0200| [55a6f705ac3d819953a505a48ee8ac72aedebcea] | committer: Michael Niedermayer

ffv1dec: support decoding older 1.3 bitstream variant

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=55a6f705ac3d819953a505a48ee8ac72aedebcea
---

 libavcodec/ffv1.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index 1cb3187..8f89542 100644
--- a/libavcodec/ffv1.c
+++ b/libavcodec/ffv1.c
@@ -1677,7 +1677,7 @@ static int decode_slice(AVCodecContext *c, void *arg){
     y= fs->slice_y;
 
     if(!fs->ac){
-        if (f->version > 2)
+        if (f->version == 3 && f->minor_version > 1 || f->version > 3)
             get_rac(&fs->c, (int[]){129});
         fs->ac_byte_count = f->version > 2 || (!x&&!y) ? fs->c.bytestream - fs->c.bytestream_start - 1 : 0;
         init_get_bits(&fs->gb,



More information about the ffmpeg-cvslog mailing list