summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPraveen Chavan <pchavan@codeaurora.org>2014-12-10 18:00:04 -0800
committerSteve Kondik <steve@cyngn.com>2015-02-25 01:01:42 -0800
commitbd8c3b3f32a6ee527b88ce1a6e3c585c6cb73061 (patch)
treef33576861549639305ce9120eae0c08fb39ec9e8
parent5680cb8c54ca39169dd78d27b80ee69ea3d629e9 (diff)
downloadandroid_hardware_qcom_media-bd8c3b3f32a6ee527b88ce1a6e3c585c6cb73061.tar.gz
android_hardware_qcom_media-bd8c3b3f32a6ee527b88ce1a6e3c585c6cb73061.tar.bz2
android_hardware_qcom_media-bd8c3b3f32a6ee527b88ce1a6e3c585c6cb73061.zip
mm-video-v4l2: vdec: insert timestamps qeued by client in TS queue
For AVI/DIVX clips containing B-Vops and NC, timestamps provided by client must be queued. If the timestamps generated after arbitrary parsing are queued, there will be duplicate timestamps for B and P; and valid timestamps carried by NC frames will be dropped and lead to back and forth predicted timstamps. Change-Id: I3e8bdb57a3acb64fddb41ce116a4bca4e87ee343 CRs-Fixed: 768656 Conflicts: mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp Change-Id: I9fcdd493cbc4c5054577d6ca9ac8ab8e59470e65
-rw-r--r--mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp b/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp
index e277a062..a406aa38 100644
--- a/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp
+++ b/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp
@@ -5713,6 +5713,7 @@ OMX_ERRORTYPE omx_vdec::empty_this_buffer(OMX_IN OMX_HANDLETYPE hComp,
} else {
post_event ((unsigned)hComp,(unsigned)buffer,OMX_COMPONENT_GENERATE_ETB);
}
+ time_stamp_dts.insert_timestamp(buffer);
return OMX_ErrorNone;
}
@@ -5947,7 +5948,6 @@ if (buffer->nFlags & QOMX_VIDEO_BUFFERFLAG_EOSEQ) {
}
DEBUG_PRINT_LOW("[ETBP] pBuf(%p) nTS(%lld) Sz(%d)",
frameinfo.bufferaddr, frameinfo.timestamp, frameinfo.datalen);
- time_stamp_dts.insert_timestamp(buffer);
return ret;
}