]> git.sesse.net Git - nageru/blobdiff - futatabi/video_stream.cpp
Remove the redundant with_audio parameter from the Mux constructor.
[nageru] / futatabi / video_stream.cpp
index 27e2c4a81e499ddc031b21434c05fd0490f1f37f..dcf44f8e452fb9277e25bd08eafd681d0ed286b4 100644 (file)
@@ -264,8 +264,7 @@ void VideoStream::start()
 
        size_t width = global_flags.width, height = global_flags.height;  // Doesn't matter for MJPEG.
        mux.reset(new Mux(avctx, width, height, Mux::CODEC_MJPEG, /*video_extradata=*/"", /*audio_codec_parameters=*/nullptr,
-               AVCOL_SPC_BT709, Mux::WITHOUT_AUDIO,
-               COARSE_TIMEBASE, /*write_callback=*/nullptr, Mux::WRITE_FOREGROUND, {}));
+               AVCOL_SPC_BT709, COARSE_TIMEBASE, /*write_callback=*/nullptr, Mux::WRITE_FOREGROUND, {}));
 
        encode_thread = thread(&VideoStream::encode_thread_func, this);
 }