Signed-off-by: Som Qin <som.qin@starfivetech.com>
[sw0312.kim: cherry-pick the commit
9aea96f91ea6 from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_6.1.y_devel]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ic2bf17247ed6ec08582d5b98b4e0be24d6a07ce0
v4l2_m2m_dst_buf_remove_by_idx(inst->v4l2_fh.m2m_ctx,
dec_output_info.index_frame_display);
+ if (!dst_buf) {
+ dev_dbg(inst->dev->dev,"find no dst_buf \n");
+ return;
+ }
+
stride = dec_output_info.disp_frame.stride;
height = dec_output_info.disp_pic_height -
dec_output_info.rc_display.bottom;