summaryrefslogtreecommitdiff
path: root/omx
diff options
context:
space:
mode:
authorNikhil Mande <nikhil@ti.com>2009-11-02 16:43:25 -0600
committerJames Dong <jdong@google.com>2009-11-06 14:16:01 -0800
commit3ef84bfac77eb508edac31e9b7ce695d9502cf07 (patch)
treefbf4cdcba8908491bb47ea95f7d255e153f40679 /omx
parent6e0a6fe086b8d841a0d06a7b3fbd2b26e784c19b (diff)
downloadomap3-3ef84bfac77eb508edac31e9b7ce695d9502cf07.tar.gz
Fix for multiple nal units per frame
Dynamic framerate exposed a bug in OMX as the algorithm started producing frames with multiple NAL units. OMX was tagging correct time stamp only to last NAL unit in each frame. This has been fixed now to tag the same timestamp to all NAL units belonging to each frame. Looks like PV muxer and demuxer are compatible and apparently this is not an issue for them. But quicktime and VLC don't like NAL units with 0 timestamp in the middle of a bitstream. Originally from: https://partner.source.android.com/g/#change,1402
Diffstat (limited to 'omx')
-rw-r--r--omx/video/src/openmax_il/video_encode/src/OMX_VideoEnc_Utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/omx/video/src/openmax_il/video_encode/src/OMX_VideoEnc_Utils.c b/omx/video/src/openmax_il/video_encode/src/OMX_VideoEnc_Utils.c
index e62de65..54aaf9f 100644
--- a/omx/video/src/openmax_il/video_encode/src/OMX_VideoEnc_Utils.c
+++ b/omx/video/src/openmax_il/video_encode/src/OMX_VideoEnc_Utils.c
@@ -2789,9 +2789,9 @@ OMX_ERRORTYPE OMX_VIDENC_Process_FilledOutBuf(VIDENC_COMPONENT_PRIVATE* pCompone
pBufHead->pMarkData = NULL;
pBufHead->hMarkTargetComponent = NULL;
- pBufHead->nTickCount = 0;
- pBufHead->nTimeStamp = 0;
pBufHead->nFlags = 0;
+ pBufHead->nTickCount = pComponentPrivate->sCircularBuffer.pHead->nTickCount;
+ pBufHead->nTimeStamp = pComponentPrivate->sCircularBuffer.pHead->nTimeStamp;
}
else
{