Allow remove video transformer option.

PiperOrigin-RevId: 406849436
This commit is contained in:
samrobinson 2021-11-01 16:49:44 +00:00 committed by tonihei
parent 70713c8458
commit 18e8ebe0f8

View file

@ -481,7 +481,6 @@ public final class TranscodingTransformer {
checkState( checkState(
!transformation.removeAudio || !transformation.removeVideo, !transformation.removeAudio || !transformation.removeVideo,
"Audio and video cannot both be removed."); "Audio and video cannot both be removed.");
checkState(!(transformation.removeVideo));
this.context = context; this.context = context;
this.mediaSourceFactory = mediaSourceFactory; this.mediaSourceFactory = mediaSourceFactory;
this.muxerFactory = muxerFactory; this.muxerFactory = muxerFactory;