summaryrefslogtreecommitdiff
path: root/libavcodec/ffv1.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-26 17:04:29 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-26 17:04:29 +0200
commit55a6f705ac3d819953a505a48ee8ac72aedebcea (patch)
tree5f05fdbc9636e6101b033c58cb7bcbe75f08c1aa /libavcodec/ffv1.c
parentff0c6282680e4daa67aa27fff2eba91dfcf3e9b7 (diff)
ffv1dec: support decoding older 1.3 bitstream variant
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ffv1.c')
-rw-r--r--libavcodec/ffv1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index 1cb31871a8..8f89542de7 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,