mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Bug 1852170 - check if the duration is valid. r=media-playback-reviewers,azebrowski
Differential Revision: https://phabricator.services.mozilla.com/D187803
This commit is contained in:
parent
7341e5e84d
commit
1c3f68905f
@ -273,7 +273,7 @@ already_AddRefed<MediaRawData> OggCodecState::PacketOutAsMediaRawData() {
|
||||
NS_ASSERTION(endTimestamp.IsPositiveOrZero(), "timestamp invalid");
|
||||
|
||||
TimeUnit duration = PacketDuration(packet.get());
|
||||
if (!duration.IsPositiveOrZero()) {
|
||||
if (!duration.IsValid() || !duration.IsPositiveOrZero()) {
|
||||
NS_WARNING(
|
||||
nsPrintfCString("duration invalid! (%s)", duration.ToString().get())
|
||||
.get());
|
||||
|
Loading…
Reference in New Issue
Block a user