mm-video-v4l2: vdec: Remove extradata buffer size check
Capture port buffer size does not include extradata size or padding.
As a result, nAllocLen and nFilledLen will be same. Hence the check
is not required.
Change-Id: Ia79eaff29b4394e7a579c5610e9f8188ed0405a0
(cherry picked from commit d768a183fd4e24410dd3fd86049d41ae3f4564ac)
diff --git a/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp b/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp
index 960b8f0..b82da47 100644
--- a/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp
+++ b/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp
@@ -11646,11 +11646,7 @@
DEBUG_PRINT_HIGH("NULL drv_ctx.extradata_info.uaddr");
return;
}
- if (!secure_mode && (drv_ctx.extradata_info.buffer_size > (p_buf_hdr->nAllocLen - p_buf_hdr->nFilledLen)) ) {
- DEBUG_PRINT_ERROR("Error: Insufficient size allocated for extra-data");
- p_extra = NULL;
- return;
- }
+
if (!secure_mode) {
pBuffer = (OMX_U8*)mmap(0, drv_ctx.ptr_outputbuffer[buf_index].buffer_len,
PROT_READ|PROT_WRITE, MAP_SHARED, drv_ctx.ptr_outputbuffer[buf_index].pmem_fd, 0);