diff options
author | Chong Zhang <chz@google.com> | 2015-03-04 12:50:59 -0800 |
---|---|---|
committer | Chong Zhang <chz@google.com> | 2015-03-04 12:55:38 -0800 |
commit | 0e225c442d8603afb55dc2567a7144ccb675b01e (patch) | |
tree | 4b5ba4cb59dbe35d3109357ebd1a31cd39a57577 /media | |
parent | c33752349705068728b9b6e0cf5ac8f8252947ae (diff) | |
download | frameworks_av-0e225c442d8603afb55dc2567a7144ccb675b01e.zip frameworks_av-0e225c442d8603afb55dc2567a7144ccb675b01e.tar.gz frameworks_av-0e225c442d8603afb55dc2567a7144ccb675b01e.tar.bz2 |
SoftAAC2: calculate timestamp from aacSampleRate
bug: 19602975
Change-Id: Ie2e5a61d627980762080c4a8701b578143d123fa
Diffstat (limited to 'media')
-rw-r--r-- | media/libstagefright/codecs/aacdec/SoftAAC2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/codecs/aacdec/SoftAAC2.cpp b/media/libstagefright/codecs/aacdec/SoftAAC2.cpp index 495bad0..1505f08 100644 --- a/media/libstagefright/codecs/aacdec/SoftAAC2.cpp +++ b/media/libstagefright/codecs/aacdec/SoftAAC2.cpp @@ -623,7 +623,7 @@ void SoftAAC2::onQueueFilled(OMX_U32 /* portIndex */) { } else { int64_t currentTime = mBufferTimestamps.top(); currentTime += mStreamInfo->aacSamplesPerFrame * - 1000000ll / mStreamInfo->sampleRate; + 1000000ll / mStreamInfo->aacSampleRate; mBufferTimestamps.add(currentTime); } } else { @@ -874,7 +874,7 @@ void SoftAAC2::onQueueFilled(OMX_U32 /* portIndex */) { // adjust/interpolate next time stamp *currentBufLeft -= decodedSize; *nextTimeStamp += mStreamInfo->aacSamplesPerFrame * - 1000000ll / mStreamInfo->sampleRate; + 1000000ll / mStreamInfo->aacSampleRate; ALOGV("adjusted nextTimeStamp/size to %lld/%d", (long long) *nextTimeStamp, *currentBufLeft); } else { |