Skip to content
Snippets Groups Projects
Commit 2c58c9f5 authored by Praveen Chavan's avatar Praveen Chavan Committed by Thierry Strudel
Browse files

msm: vidc: update the check to ignore extradata plane in dqbuf


userptr may or may not be a null-value. Checking for this field
to qualify a plane as extradata has no merit. Ignore that check

Bug: 28747768
Change-Id: I08d85ef462f09003aaa17f6ebc5d27de7083796f
Signed-off-by: default avatarPraveen Chavan <pchavan@codeaurora.org>
Signed-off-by: default avatarPraneeth Paladugu <ppaladug@codeaurora.org>
parent be15a67f
No related branches found
No related tags found
No related merge requests found
...@@ -1004,8 +1004,7 @@ int msm_vidc_dqbuf(void *instance, struct v4l2_buffer *b) ...@@ -1004,8 +1004,7 @@ int msm_vidc_dqbuf(void *instance, struct v4l2_buffer *b)
if (!inst->map_output_buffer) if (!inst->map_output_buffer)
continue; continue;
if (EXTRADATA_IDX(b->length) && if (EXTRADATA_IDX(b->length) &&
(i == EXTRADATA_IDX(b->length)) && i == EXTRADATA_IDX(b->length)) {
!b->m.planes[i].m.userptr) {
continue; continue;
} }
buffer_info = device_to_uvaddr(&inst->registeredbufs, buffer_info = device_to_uvaddr(&inst->registeredbufs,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment