vc1: set chromaformat = 1 for simple/main profile
authorHendrik Leppkes <h.leppkes@gmail.com>
Thu, 12 Dec 2013 20:12:51 +0000 (21:12 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 1 Jan 2014 01:57:44 +0000 (02:57 +0100)
1 is the only valid value for VC-1/WMV3, and setting it here makes sure
no invalid value is send to a hw accelerator, for example.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/vc1.c

index fb33e6f..f8d3162 100644 (file)
@@ -293,6 +293,7 @@ int ff_vc1_decode_sequence_header(AVCodecContext *avctx, VC1Context *v, GetBitCo
         v->zz_4x8 = ff_vc1_adv_progressive_4x8_zz;
         return decode_sequence_header_adv(v, gb);
     } else {
+        v->chromaformat = 1;
         v->zz_8x4 = ff_wmv2_scantableA;
         v->zz_4x8 = ff_wmv2_scantableB;
         v->res_y411   = get_bits1(gb);