Commit c980eae9 by olly Committed by Oliver Woodman

Allow overriding of getCodecMaxValues

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=158686545
parent 5cd3a9ba
...@@ -775,7 +775,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer { ...@@ -775,7 +775,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
* @return Suitable {@link CodecMaxValues}. * @return Suitable {@link CodecMaxValues}.
* @throws DecoderQueryException If an error occurs querying {@code codecInfo}. * @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 { Format[] streamFormats) throws DecoderQueryException {
int maxWidth = format.width; int maxWidth = format.width;
int maxHeight = format.height; int maxHeight = format.height;
...@@ -975,7 +975,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer { ...@@ -975,7 +975,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
return format.rotationDegrees == Format.NO_VALUE ? 0 : format.rotationDegrees; 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 width;
public final int height; public final int 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