X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=quicksync_encoder.cpp;h=5bba54632907216d79fcc6801f1c8299e85eb56f;hb=c4c31f062e266c63b260ab5cf7d00ec0920b329c;hp=041ac07d85db3076aa8df0bc1b8306a1717d7edb;hpb=b9f3c6c40a3ebecb48929c64b54f51f0073927a1;p=nageru diff --git a/quicksync_encoder.cpp b/quicksync_encoder.cpp index 041ac07..5bba546 100644 --- a/quicksync_encoder.cpp +++ b/quicksync_encoder.cpp @@ -1942,7 +1942,8 @@ void QuickSyncEncoderImpl::open_output_file(const std::string &filename) } string video_extradata = ""; // FIXME: See other comment about global headers. - file_mux.reset(new Mux(avctx, frame_width, frame_height, Mux::CODEC_H264, video_extradata, file_audio_encoder->get_ctx(), TIMEBASE, nullptr)); + AVCodecParametersWithDeleter audio_codecpar = file_audio_encoder->get_codec_parameters(); + file_mux.reset(new Mux(avctx, frame_width, frame_height, Mux::CODEC_H264, video_extradata, audio_codecpar.get(), TIMEBASE)); } void QuickSyncEncoderImpl::encode_thread_func()