Add AV1 support to the getCodecMaxInputSize function.

PiperOrigin-RevId: 445973162
This commit is contained in:
olly 2022-05-02 18:44:27 +01:00 committed by Ian Baker
parent 21448ba302
commit 90ce9a6787
2 changed files with 3 additions and 0 deletions

View File

@ -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:

View File

@ -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;