PD#SWPL-26687
Problem:
Multi-instance h264 stream not fluent.
Solution:
The code stream has two sps but the id is 0.
As a result, the sps syntax is not updated,
and the original frame_mbs_only_flag is used,
resulting in an error.
update original frame_mbs_only_flag when reset.
Verify:
u212
Change-Id: I3d731b73d504d4bd9403382e088fcb31c64fd15f
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
/*hw->decode_pic_count = 0;
hw->seq_info2 = 0;*/
+ hw->cfg_param1 = READ_VREG(AV_SCRATCH_1);
+ hw->cfg_param2 = READ_VREG(AV_SCRATCH_2);
+ hw->cfg_param3 = READ_VREG(AV_SCRATCH_6);
+ hw->cfg_param4 = READ_VREG(AV_SCRATCH_B);
+
if (vh264_set_params(hw,
hw->cfg_param1,
hw->cfg_param2,