Commit 55a6f705 authored by Michael Niedermayer's avatar Michael Niedermayer

ffv1dec: support decoding older 1.3 bitstream variant

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ff0c6282
...@@ -1677,7 +1677,7 @@ static int decode_slice(AVCodecContext *c, void *arg){ ...@@ -1677,7 +1677,7 @@ static int decode_slice(AVCodecContext *c, void *arg){
y= fs->slice_y; y= fs->slice_y;
if(!fs->ac){ if(!fs->ac){
if (f->version > 2) if (f->version == 3 && f->minor_version > 1 || f->version > 3)
get_rac(&fs->c, (int[]){129}); get_rac(&fs->c, (int[]){129});
fs->ac_byte_count = f->version > 2 || (!x&&!y) ? fs->c.bytestream - fs->c.bytestream_start - 1 : 0; fs->ac_byte_count = f->version > 2 || (!x&&!y) ? fs->c.bytestream - fs->c.bytestream_start - 1 : 0;
init_get_bits(&fs->gb, init_get_bits(&fs->gb,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment