Change getMaxInputSize visibility.

PiperOrigin-RevId: 326341905
This commit is contained in:
olly 2020-08-13 00:49:11 +01:00 committed by kim-vde
parent 5220c70c5e
commit a0088f068a

View File

@ -1430,7 +1430,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
* @return A maximum input buffer size in bytes, or {@link Format#NO_VALUE} if a maximum could not
* be determined.
*/
private static int getMaxInputSize(MediaCodecInfo codecInfo, Format format) {
protected static int getMaxInputSize(MediaCodecInfo codecInfo, Format format) {
if (format.maxInputSize != Format.NO_VALUE) {
// The format defines an explicit maximum input size. Add the total size of initialization
// data buffers, as they may need to be queued in the same input buffer as the largest sample.