Allow overriding of getCodecMaxValues

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=158686545
This commit is contained in:
olly 2017-06-12 01:37:01 -07:00 committed by Oliver Woodman
parent 4510abf278
commit 80be637dcc

View file

@ -650,7 +650,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
* @return Suitable {@link CodecMaxValues}.
* @throws DecoderQueryException If an error occurs querying {@code codecInfo}.
*/
private static CodecMaxValues getCodecMaxValues(MediaCodecInfo codecInfo, Format format,
protected CodecMaxValues getCodecMaxValues(MediaCodecInfo codecInfo, Format format,
Format[] streamFormats) throws DecoderQueryException {
int maxWidth = format.width;
int maxHeight = format.height;
@ -838,7 +838,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
return format.rotationDegrees == Format.NO_VALUE ? 0 : format.rotationDegrees;
}
private static final class CodecMaxValues {
protected static final class CodecMaxValues {
public final int width;
public final int height;