From f2ae6eb05ea29e3e670c501aa86c0bfde081f0f2 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 10 Apr 2023 06:13:24 +0200 Subject: Fix messed up audio pts when merging audio --- src/main.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index fd8a279..9920aaa 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1951,9 +1951,6 @@ int main(int argc, char **argv) { int err = 0; while ((err = av_buffersink_get_frame(audio_track.sink, aframe)) >= 0) { - aframe->pts = audio_track.pts; - audio_track.pts += audio_track.codec_context->frame_size; - if(framerate_mode == FramerateMode::CONSTANT) { aframe->pts = audio_track.pts; audio_track.pts += audio_track.codec_context->frame_size; -- cgit v1.2.3