mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Check AssetLoader supports output type required by TransformerInternal.
PiperOrigin-RevId: 659557063
This commit is contained in:
parent
5165d7df68
commit
a23f655cf4
1 changed files with 7 additions and 1 deletions
|
|
@ -229,7 +229,13 @@ import java.util.concurrent.atomic.AtomicInteger;
|
||||||
inputFormat);
|
inputFormat);
|
||||||
|
|
||||||
if (!isCurrentAssetFirstAsset) {
|
if (!isCurrentAssetFirstAsset) {
|
||||||
return isAudio ? decodeAudio : decodeVideo;
|
boolean decode = isAudio ? decodeAudio : decodeVideo;
|
||||||
|
if (decode) {
|
||||||
|
checkArgument((supportedOutputTypes & SUPPORTED_OUTPUT_TYPE_DECODED) != 0);
|
||||||
|
} else {
|
||||||
|
checkArgument((supportedOutputTypes & SUPPORTED_OUTPUT_TYPE_ENCODED) != 0);
|
||||||
|
}
|
||||||
|
return decode;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean addForcedAudioTrack = forceAudioTrack && reportedTrackCount.get() == 1 && !isAudio;
|
boolean addForcedAudioTrack = forceAudioTrack && reportedTrackCount.get() == 1 && !isAudio;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue