X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffmpeg_capture.cpp;h=7bd927801359b5906db8cec4641557c1898a82ed;hb=fd8b88e336fd1e3ca6b8962022abaf989ddc4ed5;hp=235393a5058b0a2215a8ea021becc6c1fc75ab9a;hpb=83157f6ffc2287cd861e938f85255cc0ba3506a1;p=nageru diff --git a/ffmpeg_capture.cpp b/ffmpeg_capture.cpp index 235393a..7bd9278 100644 --- a/ffmpeg_capture.cpp +++ b/ffmpeg_capture.cpp @@ -751,7 +751,7 @@ void FFmpegCapture::convert_audio(const AVFrame *audio_avframe, FrameAllocator:: } av_opt_set_int(resampler, "in_channel_layout", channel_layout, 0); - av_opt_set_int(resampler, "out_channel_layout", AV_CH_LAYOUT_STEREO, 0); + av_opt_set_int(resampler, "out_channel_layout", AV_CH_LAYOUT_STEREO_DOWNMIX, 0); av_opt_set_int(resampler, "in_sample_rate", av_frame_get_sample_rate(audio_avframe), 0); av_opt_set_int(resampler, "out_sample_rate", OUTPUT_FREQUENCY, 0); av_opt_set_int(resampler, "in_sample_fmt", audio_avframe->format, 0);