mirror of
https://github.com/samsonjs/media.git
synced 2026-03-28 09:55:48 +00:00
Allow overriding of getCodecMaxValues
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=158686545
This commit is contained in:
parent
4510abf278
commit
80be637dcc
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue