Merge branch 'fix-movie-cfg' into 'master'

Fix movie recorder config

Closes #798

See merge request KartKrew/Kart!1691
This commit is contained in:
toaster 2023-12-17 19:45:26 +00:00
commit 347538c630

View file

@ -91,12 +91,12 @@ static AVRecorder::Config configure()
if (sound_started && cv_movie_sound.value)
{
cfg.audio = { 44100 };
cfg.audio = AVRecorder::Config::Audio { 44100 };
}
cfg.video = { cv_movie_fps.value };
cfg.video = AVRecorder::Config::Video { };
AVRecorder::Config::Video& v = *cfg.video;
v.frame_rate = cv_movie_fps.value;
auto basex = [&v](int scale)
{