Rockchip: linux: Fix HEVC decoding

Properly initalize vb2_buffer pointer
This commit is contained in:
Alex Bee 2022-10-22 11:39:38 +02:00
parent bbf7a9f417
commit c2081ebb70

View File

@ -2316,7 +2316,7 @@ index 000000000000..fd87cbf9c1f8
+ const struct v4l2_ctrl_hevc_decode_params *decode_params = run->decode_params;
+ const struct v4l2_hevc_dpb_entry *dpb = decode_params->dpb;
+ struct vb2_queue *cap_q = &m2m_ctx->cap_q_ctx.q;
+ struct vb2_buffer *vb2_buf;
+ struct vb2_buffer *vb2_buf = NULL;
+
+ if (dpb_idx < decode_params->num_active_dpb_entries)
+ vb2_buf = vb2_find_buffer(cap_q, dpb[dpb_idx].timestamp);