diff options
author | Alberto Delmás <adelmas@gmail.com> | 2012-08-24 17:45:57 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2012-08-31 07:37:16 +0200 |
commit | ee769c6a7c1d4ec6560f5e5a6f457b770b10fb33 (patch) | |
tree | c1a3fc95ccfc0d84bfa9edfa22adc85cdcdbd6da /libavcodec/vc1.c | |
parent | d96d6ba61888c6a97d9426ca80bf36f3812cac76 (diff) | |
download | ffmpeg-ee769c6a7c1d4ec6560f5e5a6f457b770b10fb33.tar.gz |
MSS2 decoder
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
Diffstat (limited to 'libavcodec/vc1.c')
-rw-r--r-- | libavcodec/vc1.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c index 0e218af759..de75aac5e1 100644 --- a/libavcodec/vc1.c +++ b/libavcodec/vc1.c @@ -578,7 +578,12 @@ int ff_vc1_parse_frame_header(VC1Context *v, GetBitContext* gb) if (v->finterpflag) v->interpfrm = get_bits1(gb); - skip_bits(gb, 2); //framecnt unused + if (v->s.avctx->codec->id == AV_CODEC_ID_MSS2) + v->respic = + v->rangered = + v->multires = get_bits(gb, 2) == 1; + else + skip_bits(gb, 2); //framecnt unused v->rangeredfrm = 0; if (v->rangered) v->rangeredfrm = get_bits1(gb); |