summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanjay Singh <sisanj@codeaurora.org>2019-11-29 08:53:37 +0530
committerSanjay Singh <sisanj@codeaurora.org>2019-11-29 08:53:37 +0530
commitf3e4b3313a1a5576b0d1bcd17c1ca35e86f9dd98 (patch)
treefc09a2b43b6cfa18e0755becb03973af261da430
parente5e1289ff22545eb89491d405432a8e302859472 (diff)
downloadandroid_hardware_qcom_media-f3e4b3313a1a5576b0d1bcd17c1ca35e86f9dd98.tar.gz
android_hardware_qcom_media-f3e4b3313a1a5576b0d1bcd17c1ca35e86f9dd98.tar.bz2
android_hardware_qcom_media-f3e4b3313a1a5576b0d1bcd17c1ca35e86f9dd98.zip
mm-video-v4l2: vidc: Removed restriction over time stamps
Couple of video use-cases have regression due to time stamp restriction. So timestamp restriction is removed. Change-Id: I3b864273edad3f3941d191356edf7db9926b02ef
-rw-r--r--mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp10
1 files changed, 0 insertions, 10 deletions
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 179f53cb..cee0601f 100644
--- a/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp
+++ b/mm-video-v4l2/vidc/vdec/src/omx_vdec_v4l2.cpp
@@ -7378,16 +7378,6 @@ OMX_ERRORTYPE omx_vdec::empty_this_buffer(OMX_IN OMX_HANDLETYPE hComp,
buffer->pBuffer = (OMX_U8*)drv_ctx.ptr_inputbuffer[nBufferIndex].bufferaddr;
}
- /* Check if the input timestamp in seconds is greater than LONG_MAX
- or lesser than LONG_MIN. */
- if (buffer->nTimeStamp / 1000000 > LONG_MAX ||
- buffer->nTimeStamp / 1000000 < LONG_MIN) {
- /* This timestamp cannot be contained in driver timestamp field */
- DEBUG_PRINT_ERROR("[ETB] BHdr(%p) pBuf(%p) nTS(%lld) nFL(%u) >> Invalid timestamp",
- buffer, buffer->pBuffer, buffer->nTimeStamp, (unsigned int)buffer->nFilledLen);
- return OMX_ErrorBadParameter;
- }
-
DEBUG_PRINT_LOW("[ETB] BHdr(%p) pBuf(%p) nTS(%lld) nFL(%u)",
buffer, buffer->pBuffer, buffer->nTimeStamp, (unsigned int)buffer->nFilledLen);
if (arbitrary_bytes) {