mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
Bug 1542539 - MediaData::ValidateBufferAndPicture warns on 0 by 0 dimension data instead of asserting. r=jya
Warn instead of asserting since it's possible for decoders to give us 0 by 0 frames here. Differential Revision: https://phabricator.services.mozilla.com/D26612 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
cc01c2ca14
commit
e8c6250244
@ -186,8 +186,7 @@ static bool ValidateBufferAndPicture(const VideoData::YCbCrBuffer& aBuffer,
|
||||
|
||||
// The following situations could be triggered by invalid input
|
||||
if (aPicture.width <= 0 || aPicture.height <= 0) {
|
||||
// In debug mode, makes the error more noticeable
|
||||
MOZ_ASSERT(false, "Empty picture rect");
|
||||
NS_WARNING("Empty picture rect");
|
||||
return false;
|
||||
}
|
||||
if (!ValidatePlane(aBuffer.mPlanes[0]) ||
|
||||
|
Loading…
Reference in New Issue
Block a user