diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-12-12 21:12:51 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-01 02:57:44 +0100 |
commit | 719f1ce5fb41493fe10edca1ba9223fa601b6165 (patch) | |
tree | f509f713b78ff0b17749a0c0a742a75df437c2d5 /libavcodec | |
parent | e1facd3f8198fc4bfd54f3a4097e66513e6bf3e4 (diff) | |
download | ffmpeg-719f1ce5fb41493fe10edca1ba9223fa601b6165.tar.gz |
vc1: set chromaformat = 1 for simple/main profile
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>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/vc1.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c index fb33e6ffb5..f8d3162efb 100644 --- a/libavcodec/vc1.c +++ b/libavcodec/vc1.c @@ -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); |