Bug 1174582: P2. Do not skip keyframe with negative timestamp. rpending=alfredo

This commit is contained in:
Jean-Yves Avenard 2015-06-15 11:40:39 +10:00
parent 7d866d2bc9
commit ff9eb0e2db

View File

@ -520,7 +520,7 @@ MediaFormatReader::ShouldSkip(bool aSkipToNextKeyframe, media::TimeUnit aTimeThr
if (NS_FAILED(rv)) {
return aSkipToNextKeyframe;
}
return nextKeyframe < aTimeThreshold;
return nextKeyframe < aTimeThreshold && nextKeyframe.ToMicroseconds() >= 0;
}
nsRefPtr<MediaDecoderReader::VideoDataPromise>