Commit 9f53ce66 by claincly Committed by Rohit Singh

Set encoded level in DefaultDecoderFactory.

PiperOrigin-RevId: 524248369
parent 69979eb9
...@@ -105,6 +105,8 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull; ...@@ -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
......
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