Add AV1 support to the getCodecMaxInputSize function.
PiperOrigin-RevId: 445973162
This commit is contained in:
parent
21448ba302
commit
90ce9a6787
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user