Commit 68613e6a by hschlueter Committed by bachinger

Misc small fixes in Transformer.

PiperOrigin-RevId: 420056876
parent be99b97a
...@@ -99,7 +99,6 @@ public final class Transformer { ...@@ -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; ...@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment