mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1174582: P2. Do not skip keyframe with negative timestamp. rpending=alfredo
This commit is contained in:
parent
7d866d2bc9
commit
ff9eb0e2db
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user