From 16d273e6b4898da5162c8e72bb818fbe2c81c357 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 11 May 2024 02:59:13 +0200 Subject: record audio frames for empty audio track again --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index f6ab23f..0c47081 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2507,7 +2507,7 @@ int main(int argc, char **argv) { // videos because bad software such as video editing software and VLC do not support variable frame rate software, // despite nvidia shadowplay and xbox game bar producing variable frame rate videos. // So we have to make sure we produce frames at the same relative rate as the video. - if((num_missing_frames >= 1 && got_audio_data) || num_missing_frames >= 5) { + if((num_missing_frames >= 1 && got_audio_data) || num_missing_frames >= 5 || !audio_device.sound_device.handle) { // TODO: //audio_track.frame->data[0] = empty_audio; if(first_frame || num_missing_frames >= 5) { -- cgit v1.2.3