From f1e10e8ed74cac805d601139882378a1f450fe94 Mon Sep 17 00:00:00 2001 From: James Dong Date: Tue, 15 Mar 2011 09:32:53 -0700 Subject: Fix an issue where the timestamp provided by WAVExtractor does not start with 0 Change-Id: Ie8eb86e26f026c07a3c3be43e35027b19de4a2c3 --- media/libstagefright/WAVExtractor.cpp | 3 +-- 1 file changed, 1 insertion(+), 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; -- cgit v1.1