Commit 6c6f91a3 by hschlueter Committed by Oliver Woodman

Misc small fixes in Transformer.

PiperOrigin-RevId: 420056876
parent ea6d0ceb
...@@ -97,7 +97,6 @@ public final class Transformer { ...@@ -97,7 +97,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