Fix messed up audio pts when merging audio

This commit is contained in:
dec05eba 2023-04-10 06:13:24 +02:00
parent 895768104f
commit f2ae6eb05e

View File

@ -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;