aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-04-11 18:46:34 +0200
committerdec05eba <dec05eba@protonmail.com>2024-04-11 18:46:34 +0200
commitddac6acaf2781ea9368dc5a59fdb009a6e2736a8 (patch)
treeee1f4536bcc1c43b15808e2c2b296fcaea590b8a /src/main.cpp
parenta6b1d13beb15fe7e70cc024598582ac64a51f70d (diff)
Fix messed up audio on some distros (those using pulseaudio?)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 0 insertions, 3 deletions
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<std::mutex> 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<std::mutex> 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)