[FFmpeg-devel] [PATCH 4/6] vc1: set chromaformat = 1 for simple/main profile

Hendrik Leppkes h.leppkes at gmail.com
Thu Dec 12 21:12:51 CET 2013


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.
---
 libavcodec/vc1.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index 181a4df..94a1701 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -304,6 +304,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);
-- 
1.8.4.msysgit.0



More information about the ffmpeg-devel mailing list