Check AssetLoader supports output type required by TransformerInternal.
PiperOrigin-RevId: 659557063
This commit is contained in:
parent
5165d7df68
commit
a23f655cf4
@ -229,7 +229,13 @@ import java.util.concurrent.atomic.AtomicInteger;
|
||||
inputFormat);
|
||||
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user