mirror of
https://github.com/androidx/media.git
synced 2025-05-06 23:20:42 +08:00
Misc small fixes in Transformer.
PiperOrigin-RevId: 420056876
This commit is contained in:
parent
be99b97a46
commit
68613e6a1a
@ -99,7 +99,6 @@ public final class Transformer {
|
||||
private boolean removeAudio;
|
||||
private boolean removeVideo;
|
||||
private String containerMimeType;
|
||||
// TODO(b/204869912): Make final once deprecated setters are removed.
|
||||
private TransformationRequest transformationRequest;
|
||||
private Transformer.Listener listener;
|
||||
private DebugViewProvider debugViewProvider;
|
||||
|
@ -77,7 +77,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
|
||||
}
|
||||
Format inputFormat = checkNotNull(formatHolder.format);
|
||||
String sampleMimeType = checkNotNull(inputFormat.sampleMimeType);
|
||||
if (transformationRequest.audioMimeType == null
|
||||
if (transformationRequest.videoMimeType == null
|
||||
&& !muxerWrapper.supportsSampleMimeType(sampleMimeType)) {
|
||||
throw TransformationException.createForMuxer(
|
||||
new IllegalArgumentException(
|
||||
|
Loading…
x
Reference in New Issue
Block a user