From: Xiang, Haihao Date: Mon, 4 Aug 2014 02:41:59 +0000 (+0800) Subject: avcenc: only support chroma_format_idc with 1 X-Git-Tag: 1.4.0.pre1~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=acfcd5f0637a951d50c5112c7dfbd46f1d0dcdb3;p=platform%2Fupstream%2Flibva.git avcenc: only support chroma_format_idc with 1 Signed-off-by: Xiang, Haihao --- diff --git a/test/encode/avcenc.c b/test/encode/avcenc.c index fafb366..84d217a 100644 --- a/test/encode/avcenc.c +++ b/test/encode/avcenc.c @@ -1414,6 +1414,8 @@ static void avcenc_context_seq_param_init(VAEncSequenceParameterBufferH264 *seq_ seq_param->picture_width_in_mbs = width_in_mbs; seq_param->picture_height_in_mbs = height_in_mbs; seq_param->seq_fields.bits.frame_mbs_only_flag = 1; + seq_param->seq_fields.bits.chroma_format_idc = 1; + if (frame_bit_rate > 0) seq_param->bits_per_second = 1024 * frame_bit_rate; /* use kbps as input */