Commit 90ce9a67 by olly Committed by Ian Baker

Add AV1 support to the getCodecMaxInputSize function.

PiperOrigin-RevId: 445973162
parent 21448ba3
......@@ -21,6 +21,7 @@
`Player.getCurrentTracks` and `Player.Listener.onTracksChanged`.
* Video:
* Rename `DummySurface` to `PlaceHolderSurface`.
* Add AV1 support to the `MediaCodecVideoRenderer.getCodecMaxInputSize`.
* Audio:
* Use LG AC3 audio decoder advertising non-standard MIME type.
* Ad playback / IMA:
......
......@@ -811,6 +811,8 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
maxPixels = Util.ceilDivide(width, 16) * Util.ceilDivide(height, 16) * 16 * 16;
minCompressionRatio = 2;
break;
case MimeTypes.VIDEO_AV1:
// AV1 does not specify a ratio so use the values from the platform's C2SoftAomDec.cpp.
case MimeTypes.VIDEO_VP8:
// VPX does not specify a ratio so use the values from the platform's SoftVPX.cpp.
maxPixels = width * height;
......
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