Loading media/extractors/amr/AMRExtractor.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -285,8 +285,8 @@ status_t AMRSource::read( ReadOptions::SeekMode mode; if (mOffsetTableLength > 0 && options && options->getSeekTo(&seekTimeUs, &mode)) { size_t size; int64_t seekFrame = seekTimeUs / 20000ll; // 20ms per frame. mCurrentTimeUs = seekFrame * 20000ll; int64_t seekFrame = seekTimeUs / 20000LL; // 20ms per frame. mCurrentTimeUs = seekFrame * 20000LL; size_t index = seekFrame < 0 ? 0 : seekFrame / 50; if (index >= mOffsetTableLength) { Loading media/extractors/mp3/VBRISeeker.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ VBRISeeker *VBRISeeker::CreateFromSource( size_t numFrames = U32_AT(&vbriHeader[14]); int64_t durationUs = numFrames * 1000000ll * (sampleRate >= 32000 ? 1152 : 576) / sampleRate; numFrames * 1000000LL * (sampleRate >= 32000 ? 1152 : 576) / sampleRate; ALOGV("duration = %.2f secs", durationUs / 1E6); Loading media/extractors/mpeg2/MPEG2TSExtractor.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -262,7 +262,7 @@ void MPEG2TSExtractor::init() { } // Wait only for 2 seconds to detect audio/video streams. if (ALooper::GetNowUs() - startTime > 2000000ll) { if (ALooper::GetNowUs() - startTime > 2000000LL) { break; } } Loading @@ -274,7 +274,7 @@ void MPEG2TSExtractor::init() { List<int64_t> durations; // Estimate duration --- stabilize until you get <500ms deviation. while (feedMore() == OK && ALooper::GetNowUs() - startTime <= 2000000ll) { && ALooper::GetNowUs() - startTime <= 2000000LL) { if (mSeekSyncPoints->size() > prevSyncSize) { prevSyncSize = mSeekSyncPoints->size(); int64_t diffUs = mSeekSyncPoints->keyAt(prevSyncSize - 1) Loading Loading
media/extractors/amr/AMRExtractor.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -285,8 +285,8 @@ status_t AMRSource::read( ReadOptions::SeekMode mode; if (mOffsetTableLength > 0 && options && options->getSeekTo(&seekTimeUs, &mode)) { size_t size; int64_t seekFrame = seekTimeUs / 20000ll; // 20ms per frame. mCurrentTimeUs = seekFrame * 20000ll; int64_t seekFrame = seekTimeUs / 20000LL; // 20ms per frame. mCurrentTimeUs = seekFrame * 20000LL; size_t index = seekFrame < 0 ? 0 : seekFrame / 50; if (index >= mOffsetTableLength) { Loading
media/extractors/mp3/VBRISeeker.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ VBRISeeker *VBRISeeker::CreateFromSource( size_t numFrames = U32_AT(&vbriHeader[14]); int64_t durationUs = numFrames * 1000000ll * (sampleRate >= 32000 ? 1152 : 576) / sampleRate; numFrames * 1000000LL * (sampleRate >= 32000 ? 1152 : 576) / sampleRate; ALOGV("duration = %.2f secs", durationUs / 1E6); Loading
media/extractors/mpeg2/MPEG2TSExtractor.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -262,7 +262,7 @@ void MPEG2TSExtractor::init() { } // Wait only for 2 seconds to detect audio/video streams. if (ALooper::GetNowUs() - startTime > 2000000ll) { if (ALooper::GetNowUs() - startTime > 2000000LL) { break; } } Loading @@ -274,7 +274,7 @@ void MPEG2TSExtractor::init() { List<int64_t> durations; // Estimate duration --- stabilize until you get <500ms deviation. while (feedMore() == OK && ALooper::GetNowUs() - startTime <= 2000000ll) { && ALooper::GetNowUs() - startTime <= 2000000LL) { if (mSeekSyncPoints->size() > prevSyncSize) { prevSyncSize = mSeekSyncPoints->size(); int64_t diffUs = mSeekSyncPoints->keyAt(prevSyncSize - 1) Loading