зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1008785 - Ensure the last video frame end time is correct on Android MP4 playback. r=kinetik
This commit is contained in:
Родитель
4b6d3a8f6d
Коммит
9037e1639f
|
@ -144,9 +144,7 @@ bool MediaPluginReader::DecodeVideoFrame(bool &aKeyframeSkip,
|
||||||
if (mLastVideoFrame) {
|
if (mLastVideoFrame) {
|
||||||
int64_t durationUs;
|
int64_t durationUs;
|
||||||
mPlugin->GetDuration(mPlugin, &durationUs);
|
mPlugin->GetDuration(mPlugin, &durationUs);
|
||||||
if (durationUs < mLastVideoFrame->mTime) {
|
durationUs = std::max<int64_t>(durationUs - mLastVideoFrame->mTime, 0);
|
||||||
durationUs = 0;
|
|
||||||
}
|
|
||||||
mVideoQueue.Push(VideoData::ShallowCopyUpdateDuration(mLastVideoFrame,
|
mVideoQueue.Push(VideoData::ShallowCopyUpdateDuration(mLastVideoFrame,
|
||||||
durationUs));
|
durationUs));
|
||||||
mLastVideoFrame = nullptr;
|
mLastVideoFrame = nullptr;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче