Commit 66f1c044 by olly Committed by Ian Baker

Fix capabilities check for low frame-rate content

Issue: #6054
Issue: #474
PiperOrigin-RevId: 306437452
parent edc25ddc
......@@ -547,7 +547,9 @@ public final class MediaCodecInfo {
width = alignedSize.x;
height = alignedSize.y;
if (frameRate == Format.NO_VALUE || frameRate <= 0) {
// VideoCapabilities.areSizeAndRateSupported incorrectly returns false if frameRate < 1 on some
// versions of Android, so we only check the size in this case [Internal ref: b/153940404].
if (frameRate == Format.NO_VALUE || frameRate < 1) {
return capabilities.isSizeSupported(width, height);
} else {
// The signaled frame rate may be slightly higher than the actual frame rate, so we take the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment