Set encoded level in DefaultDecoderFactory.

PiperOrigin-RevId: 524248369
This commit is contained in:
claincly 2023-04-14 11:37:12 +01:00 committed by Rohit Singh
parent 52a9ce3265
commit cb28960c07

View File

@ -105,6 +105,8 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
if (codecProfileAndLevel != null) { if (codecProfileAndLevel != null) {
MediaFormatUtil.maybeSetInteger( MediaFormatUtil.maybeSetInteger(
mediaFormat, MediaFormat.KEY_PROFILE, codecProfileAndLevel.first); mediaFormat, MediaFormat.KEY_PROFILE, codecProfileAndLevel.first);
MediaFormatUtil.maybeSetInteger(
mediaFormat, MediaFormat.KEY_LEVEL, codecProfileAndLevel.second);
} }
@Nullable @Nullable