author | miaohong chen <miaohong.chen@amlogic.com> | 2020-05-21 02:16:07 (GMT) |
---|---|---|
committer | Hui Zhang <hui.zhang@amlogic.com> | 2020-05-25 04:22:42 (GMT) |
commit | d44eaef0a3e91a2e4cfa7b0fc423a3b57387883c (patch) | |
tree | ae59ea5dd7b4628affe2775df98889baa7fa8fa7 | |
parent | ceef85fa59997d14d6ab5167f90c34e58f277f56 (diff) | |
download | media_modules-d44eaef0a3e91a2e4cfa7b0fc423a3b57387883c.zip media_modules-d44eaef0a3e91a2e4cfa7b0fc423a3b57387883c.tar.gz media_modules-d44eaef0a3e91a2e4cfa7b0fc423a3b57387883c.tar.bz2 |
vmh264: fix bug of stream not fluent [1/1]
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>
-rw-r--r-- | drivers/frame_provider/decoder/h264_multi/vmh264.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/frame_provider/decoder/h264_multi/vmh264.c b/drivers/frame_provider/decoder/h264_multi/vmh264.c index 19ffea7..99e51cb 100644 --- a/drivers/frame_provider/decoder/h264_multi/vmh264.c +++ b/drivers/frame_provider/decoder/h264_multi/vmh264.c @@ -9224,6 +9224,11 @@ static void h264_reset_bufmgr(struct vdec_s *vdec) /*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, |