diff options
author | Andy McFadden <fadden@android.com> | 2013-05-17 16:48:14 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-05-17 16:48:14 +0000 |
commit | 4224dedff0451e0aea3b8f5c3aaf5f2ad0eac1dd (patch) | |
tree | 828d6f08de30b693dcee09d9c1773db63172598f | |
parent | 99f27cdf2c2711aa0c8b4d9ae4d12cae37ff94f6 (diff) | |
parent | 324143b1531328bc4e53c6cbd962c9a457d73707 (diff) | |
download | frameworks_av-4224dedff0451e0aea3b8f5c3aaf5f2ad0eac1dd.zip frameworks_av-4224dedff0451e0aea3b8f5c3aaf5f2ad0eac1dd.tar.gz frameworks_av-4224dedff0451e0aea3b8f5c3aaf5f2ad0eac1dd.tar.bz2 |
Merge "Adjust timestamp scale" into jb-mr2-dev
-rw-r--r-- | media/libstagefright/omx/GraphicBufferSource.cpp | 6 | ||||
-rw-r--r-- | media/libstagefright/omx/GraphicBufferSource.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/media/libstagefright/omx/GraphicBufferSource.cpp b/media/libstagefright/omx/GraphicBufferSource.cpp index 3854e52..45a70e7 100644 --- a/media/libstagefright/omx/GraphicBufferSource.cpp +++ b/media/libstagefright/omx/GraphicBufferSource.cpp @@ -288,7 +288,7 @@ bool GraphicBufferSource::fillCodecBuffer_l() { mBufferSlot[item.mBuf] = item.mGraphicBuffer; } - err = submitBuffer_l(mBufferSlot[item.mBuf], item.mTimestamp, cbi); + err = submitBuffer_l(mBufferSlot[item.mBuf], item.mTimestamp / 1000, cbi); if (err != OK) { ALOGV("submitBuffer_l failed, releasing bq buf %d", item.mBuf); mBufferQueue->releaseBuffer(item.mBuf, EGL_NO_DISPLAY, @@ -328,7 +328,7 @@ status_t GraphicBufferSource::signalEndOfInputStream() { } status_t GraphicBufferSource::submitBuffer_l(sp<GraphicBuffer>& graphicBuffer, - int64_t timestamp, int cbi) { + int64_t timestampUsec, int cbi) { ALOGV("submitBuffer_l cbi=%d", cbi); CodecBuffer& codecBuffer(mCodecBuffers.editItemAt(cbi)); codecBuffer.mGraphicBuffer = graphicBuffer; @@ -343,7 +343,7 @@ status_t GraphicBufferSource::submitBuffer_l(sp<GraphicBuffer>& graphicBuffer, status_t err = mNodeInstance->emptyDirectBuffer(header, 0, 4 + sizeof(buffer_handle_t), OMX_BUFFERFLAG_ENDOFFRAME, - timestamp); + timestampUsec); if (err != OK) { ALOGW("WARNING: emptyDirectBuffer failed: 0x%x", err); codecBuffer.mGraphicBuffer = NULL; diff --git a/media/libstagefright/omx/GraphicBufferSource.h b/media/libstagefright/omx/GraphicBufferSource.h index 7f1f22e..562d342 100644 --- a/media/libstagefright/omx/GraphicBufferSource.h +++ b/media/libstagefright/omx/GraphicBufferSource.h @@ -131,7 +131,7 @@ private: // Marks the mCodecBuffers entry as in-use, copies the GraphicBuffer // reference into the codec buffer, and submits the data to the codec. status_t submitBuffer_l(sp<GraphicBuffer>& graphicBuffer, - int64_t timestamp, int cbi); + int64_t timestampUsec, int cbi); // Submits an empty buffer, with the EOS flag set. Returns without // doing anything if we don't have a codec buffer available. |