Loading media/extractors/wav/WAVExtractor.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -461,7 +461,7 @@ media_status_t WAVSource::read( } // maxBytesToRead may be reduced so that in-place data conversion will fit in buffer size. const size_t bufferSize = buffer->size(); const size_t bufferSize = std::min(buffer->size(), kMaxFrameSize); size_t maxBytesToRead; if (mOutputFloat) { // destination is float at 4 bytes per sample, source may be less. maxBytesToRead = (mBitsPerSample / 8) * (bufferSize / 4); Loading Loading
media/extractors/wav/WAVExtractor.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -461,7 +461,7 @@ media_status_t WAVSource::read( } // maxBytesToRead may be reduced so that in-place data conversion will fit in buffer size. const size_t bufferSize = buffer->size(); const size_t bufferSize = std::min(buffer->size(), kMaxFrameSize); size_t maxBytesToRead; if (mOutputFloat) { // destination is float at 4 bytes per sample, source may be less. maxBytesToRead = (mBitsPerSample / 8) * (bufferSize / 4); Loading