record audio frames for empty audio track again

This commit is contained in:
dec05eba
2024-05-11 02:59:13 +02:00
parent 952aa1bf51
commit 16d273e6b4

View File

@@ -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, // 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. // 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. // 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: // TODO:
//audio_track.frame->data[0] = empty_audio; //audio_track.frame->data[0] = empty_audio;
if(first_frame || num_missing_frames >= 5) { if(first_frame || num_missing_frames >= 5) {