diff --git a/dom/media/MediaData.cpp b/dom/media/MediaData.cpp index 17e47434630d..0a70561ef6f3 100644 --- a/dom/media/MediaData.cpp +++ b/dom/media/MediaData.cpp @@ -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]) ||