Encoder: Added support for configuring VUI parameters.
Bug: 27442922
Change-Id: I781195e78c480e7449f49467abb1df71902e568d
diff --git a/encoder/ih264e_process.c b/encoder/ih264e_process.c
index fce7e35..796c983 100644
--- a/encoder/ih264e_process.c
+++ b/encoder/ih264e_process.c
@@ -181,7 +181,8 @@
ps_entropy->i4_error_code = IH264E_SUCCESS;
/* generate sps */
- ps_entropy->i4_error_code |= ih264e_generate_sps(ps_bitstrm, ps_sps, &ps_codec->s_vui);
+ ps_entropy->i4_error_code |= ih264e_generate_sps(ps_bitstrm, ps_sps,
+ &ps_codec->s_cfg.s_vui);
/* generate pps */
ps_entropy->i4_error_code |= ih264e_generate_pps(ps_bitstrm, ps_pps, ps_sps);
@@ -371,8 +372,8 @@
if (1 == ps_entropy->i4_gen_header)
{
/* generate sps */
- ps_entropy->i4_error_code |= ih264e_generate_sps(ps_bitstrm, ps_sps, &ps_codec->s_vui);
-
+ ps_entropy->i4_error_code |= ih264e_generate_sps(ps_bitstrm, ps_sps,
+ &ps_codec->s_cfg.s_vui);
/* generate pps */
ps_entropy->i4_error_code |= ih264e_generate_pps(ps_bitstrm, ps_pps, ps_sps);