diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-04-10 06:13:24 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-04-10 06:13:24 +0200 |
commit | f2ae6eb05ea29e3e670c501aa86c0bfde081f0f2 (patch) | |
tree | 896b7199a5ff81b9b7eda1b32b79fa1dd6883d35 | |
parent | 895768104fe833288cede903d5ca6d316791f3b7 (diff) |
Fix messed up audio pts when merging audio
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 0 insertions, 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; |