]> git.sesse.net Git - nageru/blobdiff - quicksync_encoder.cpp
Send the AVCodecContext for audio to the stream mux instead of constructing a fake...
[nageru] / quicksync_encoder.cpp
index 5ebd454edfdb635ba630123c92adf4e68486830c..fbbde94cb4abfb37ccb820ee39ee43128e194384 100644 (file)
@@ -1949,7 +1949,7 @@ void QuickSyncEncoderImpl::open_output_file(const std::string &filename)
                exit(1);
        }
 
-       file_mux.reset(new Mux(avctx, frame_width, frame_height, Mux::CODEC_H264, file_audio_encoder->get_codec(), TIMEBASE, DEFAULT_AUDIO_OUTPUT_BIT_RATE, nullptr));
+       file_mux.reset(new Mux(avctx, frame_width, frame_height, Mux::CODEC_H264, file_audio_encoder->get_ctx(), TIMEBASE, nullptr));
 }
 
 void QuickSyncEncoderImpl::encode_thread_func()