diff options
Diffstat (limited to 'media')
| -rw-r--r-- | media/libstagefright/WAVExtractor.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/WAVExtractor.cpp b/media/libstagefright/WAVExtractor.cpp index 446021c..9332120 100644 --- a/media/libstagefright/WAVExtractor.cpp +++ b/media/libstagefright/WAVExtractor.cpp @@ -318,7 +318,7 @@ status_t WAVSource::read(      int64_t seekTimeUs;      ReadOptions::SeekMode mode;      if (options != NULL && options->getSeekTo(&seekTimeUs, &mode)) { -        int64_t pos = (seekTimeUs * mSampleRate) / 1000000 * mNumChannels * 2; +        int64_t pos = (seekTimeUs * mSampleRate) / 1000000 * mNumChannels * (mBitsPerSample >> 3);          if (pos > mSize) {              pos = mSize;          }  | 
