vmh264: fix mosaic when decode error frame. [1/1]
authorshihong.zheng <shihong.zheng@amlogic.com>
Fri, 2 Oct 2020 08:44:57 +0000 (16:44 +0800)
committerShihong Zheng <shihong.zheng@amlogic.com>
Sat, 3 Oct 2020 02:15:14 +0000 (19:15 -0700)
PD#SWPL-34290

Problem:
fix h264 show error frames.

Solution:
fix h264 error frames recycle failed.

Verify:
t963

Change-Id: Ifff87f781da7cf83727c2c9408f6edcaa37bd8ab
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
drivers/frame_provider/decoder/h264_multi/vmh264.c

index bc8d85aadee62ec82d3f6f50b7591f7af0c2fc99..bd824c255cf0eccd841a67cf6a0f6a37768c8d0b 100644 (file)
@@ -2826,6 +2826,7 @@ static int post_prepare_process(struct vdec_s *vdec, struct FrameStore *frame)
                (!(frame->data_flag & I_FLAG)))) {
                set_frame_output_flag(&hw->dpb, frame->index);
                frame->show_frame = false;
+               return 0;
        }
 
        if (dpb_is_debug(DECODE_ID(hw), PRINT_FLAG_DPB_DETAIL)) {