Merge pull request #7033 from knaerzche/rk-hevc-fix

Rockchip: linux: Fix HEVC decoding
This commit is contained in:
Jernej Škrabec 2022-10-22 11:46:12 +02:00 committed by GitHub
commit 7fb1002d7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);