Bug 1102647 - Accept 4k video sizes in MPEG4Extractor. r=ajones

This commit is contained in:
Matt Woodrow 2014-11-28 13:18:35 +13:00
parent 6f8543ba2b
commit 0bde89c1fe

View File

@ -2503,7 +2503,7 @@ static bool ValidInputSize(int32_t size) {
// Reject compressed samples larger than an uncompressed UHD // Reject compressed samples larger than an uncompressed UHD
// frame. This is a reasonable cut-off for a lossy codec, // frame. This is a reasonable cut-off for a lossy codec,
// combined with the current Firefox limit to 5k video. // combined with the current Firefox limit to 5k video.
return (size > 0 && size < 4 * (1920 * 1080) * 3 / 2); return (size > 0 && size <= 4 * (1920 * 1080) * 3 / 2);
} }
status_t MPEG4Source::start(MetaData *params) { status_t MPEG4Source::start(MetaData *params) {