diff options
author | James Dong <jdong@google.com> | 2011-03-15 09:32:53 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2011-03-15 09:45:22 -0700 |
commit | f1e10e8ed74cac805d601139882378a1f450fe94 (patch) | |
tree | 369128a72ca2c18c627e698aa5988d57cf064230 | |
parent | 8635b7b095fbf7ffc63d3ce791891a9116ace1f6 (diff) | |
download | frameworks_av-f1e10e8ed74cac805d601139882378a1f450fe94.zip frameworks_av-f1e10e8ed74cac805d601139882378a1f450fe94.tar.gz frameworks_av-f1e10e8ed74cac805d601139882378a1f450fe94.tar.bz2 |
Fix an issue where the timestamp provided by WAVExtractor does not start with 0
Change-Id: Ie8eb86e26f026c07a3c3be43e35027b19de4a2c3
-rw-r--r-- | media/libstagefright/WAVExtractor.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/media/libstagefright/WAVExtractor.cpp b/media/libstagefright/WAVExtractor.cpp index 9332120..e9e5ef9 100644 --- a/media/libstagefright/WAVExtractor.cpp +++ b/media/libstagefright/WAVExtractor.cpp @@ -353,8 +353,6 @@ status_t WAVSource::read( return ERROR_END_OF_STREAM; } - mCurrentPos += n; - buffer->set_range(0, n); if (mWaveFormat == WAVE_FORMAT_PCM) { @@ -406,6 +404,7 @@ status_t WAVSource::read( / (mNumChannels * bytesPerSample) / mSampleRate); buffer->meta_data()->setInt32(kKeyIsSyncFrame, 1); + mCurrentPos += n; *out = buffer; |