From ddac6acaf2781ea9368dc5a59fdb009a6e2736a8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 11 Apr 2024 18:46:34 +0200 Subject: Fix messed up audio on some distros (those using pulseaudio?) --- src/main.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 2d0c719..98da891 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2435,7 +2435,6 @@ int main(int argc, char **argv) { if(new_pts == audio_device.frame->pts) continue; audio_device.frame->pts = new_pts; - //audio_device.frame->linesize[0] = sound_buffer_size / 2; if(audio_track.graph) { std::lock_guard lock(audio_filter_mutex); @@ -2468,7 +2467,6 @@ int main(int argc, char **argv) { if(new_pts == audio_device.frame->pts) continue; audio_device.frame->pts = new_pts; - //audio_device.frame->linesize[0] = sound_buffer_size / 2; if(audio_track.graph) { std::lock_guard lock(audio_filter_mutex); @@ -2526,7 +2524,6 @@ int main(int argc, char **argv) { if(new_pts == aframe->pts) continue; aframe->pts = new_pts; - //aframe->linesize[0] = sound_buffer_size / 2; err = avcodec_send_frame(audio_track.codec_context, aframe); if(err >= 0){ // TODO: Move to separate thread because this could write to network (for example when livestreaming) -- cgit v1.2.3