aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-05-11 02:59:13 +0200
committerdec05eba <dec05eba@protonmail.com>2024-05-11 02:59:13 +0200
commit16d273e6b4898da5162c8e72bb818fbe2c81c357 (patch)
treef7b29d3b6d0400b2336f89368834e10ee66b2d7d
parent952aa1bf51e479c23c11d12528ccd8409cf06f88 (diff)
record audio frames for empty audio track again
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
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) {