[FFmpeg-cvslog] avfilter/af_amix: do not leave unset PTS for frames after first stream is over
Paul B Mahol
git at videolan.org
Mon Sep 14 19:23:04 EEST 2020
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Sep 13 14:00:27 2020 +0200| [17b44f759e8cbb6952c0ae2dde5fd21adb163651] | committer: Paul B Mahol
avfilter/af_amix: do not leave unset PTS for frames after first stream is over
First stream is used only to get number of samples to put into each output frame.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=17b44f759e8cbb6952c0ae2dde5fd21adb163651
---
libavfilter/af_amix.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavfilter/af_amix.c b/libavfilter/af_amix.c
index cae9d4585a..c4d8916a57 100644
--- a/libavfilter/af_amix.c
+++ b/libavfilter/af_amix.c
@@ -309,6 +309,8 @@ static int output_frame(AVFilterLink *outlink)
}
}
}
+
+ s->next_pts = frame_list_next_pts(s->frame_list);
} else {
/* first input closed: use the available samples */
nb_samples = INT_MAX;
@@ -324,7 +326,6 @@ static int output_frame(AVFilterLink *outlink)
}
}
- s->next_pts = frame_list_next_pts(s->frame_list);
frame_list_remove_samples(s->frame_list, nb_samples);
calculate_scales(s, nb_samples);
More information about the ffmpeg-cvslog
mailing list