From 42f1aba2c31f09f433111cce86772a0beb4fc8fb Mon Sep 17 00:00:00 2001 From: def Date: Tue, 7 Jul 2020 15:45:36 +0200 Subject: [PATCH] Fix video recorder (follow-up to 83c820db) --- src/engine/client/video.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/client/video.cpp b/src/engine/client/video.cpp index 302608cf0..0275a7566 100644 --- a/src/engine/client/video.cpp +++ b/src/engine/client/video.cpp @@ -534,10 +534,10 @@ void CVideo::OpenAudio() /* set options */ av_opt_set_int(m_AudioStream.pSwrCtx, "in_channel_count", 2, 0); av_opt_set_int(m_AudioStream.pSwrCtx, "in_sample_rate", g_Config.m_SndRate, 0); - av_opt_set_sample_fmt(m_AudioStream.pSwrCtx, "in_SampleFmt", AV_SAMPLE_FMT_S16, 0); + av_opt_set_sample_fmt(m_AudioStream.pSwrCtx, "in_sample_fmt", AV_SAMPLE_FMT_S16, 0); av_opt_set_int(m_AudioStream.pSwrCtx, "out_channel_count", c->channels, 0); av_opt_set_int(m_AudioStream.pSwrCtx, "out_sample_rate", c->sample_rate, 0); - av_opt_set_sample_fmt(m_AudioStream.pSwrCtx, "out_SampleFmt", c->sample_fmt, 0); + av_opt_set_sample_fmt(m_AudioStream.pSwrCtx, "out_sample_fmt", c->sample_fmt, 0); /* initialize the resampling context */ if((Ret = swr_init(m_AudioStream.pSwrCtx)) < 0) {