mirror of
https://github.com/androidx/media.git
synced 2025-05-07 15:40:37 +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 removeAudio;
|
||||||
private boolean removeVideo;
|
private boolean removeVideo;
|
||||||
private String containerMimeType;
|
private String containerMimeType;
|
||||||
// TODO(b/204869912): Make final once deprecated setters are removed.
|
|
||||||
private TransformationRequest transformationRequest;
|
private TransformationRequest transformationRequest;
|
||||||
private Transformer.Listener listener;
|
private Transformer.Listener listener;
|
||||||
private DebugViewProvider debugViewProvider;
|
private DebugViewProvider debugViewProvider;
|
||||||
|
@ -77,7 +77,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
|
|||||||
}
|
}
|
||||||
Format inputFormat = checkNotNull(formatHolder.format);
|
Format inputFormat = checkNotNull(formatHolder.format);
|
||||||
String sampleMimeType = checkNotNull(inputFormat.sampleMimeType);
|
String sampleMimeType = checkNotNull(inputFormat.sampleMimeType);
|
||||||
if (transformationRequest.audioMimeType == null
|
if (transformationRequest.videoMimeType == null
|
||||||
&& !muxerWrapper.supportsSampleMimeType(sampleMimeType)) {
|
&& !muxerWrapper.supportsSampleMimeType(sampleMimeType)) {
|
||||||
throw TransformationException.createForMuxer(
|
throw TransformationException.createForMuxer(
|
||||||
new IllegalArgumentException(
|
new IllegalArgumentException(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user