mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Set encoded level in DefaultDecoderFactory.
PiperOrigin-RevId: 524248369
This commit is contained in:
parent
52a9ce3265
commit
cb28960c07
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue