[FFmpeg-cvslog] avfilter/af_afftdn: fix pts handling when timebase and 1/samplerate differ
Paul B Mahol
git at videolan.org
Sun Nov 17 13:39:37 EET 2019
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Nov 17 12:21:10 2019 +0100| [115537f48759ca64fa82e9c72330453661d3661d] | committer: Paul B Mahol
avfilter/af_afftdn: fix pts handling when timebase and 1/samplerate differ
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=115537f48759ca64fa82e9c72330453661d3661d
---
libavfilter/af_afftdn.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/af_afftdn.c b/libavfilter/af_afftdn.c
index 9619aadbee..6ca9f1082e 100644
--- a/libavfilter/af_afftdn.c
+++ b/libavfilter/af_afftdn.c
@@ -1260,7 +1260,7 @@ static int output_frame(AVFilterLink *inlink)
ret = ff_filter_frame(outlink, out);
if (ret < 0)
goto end;
- s->pts += s->sample_advance;
+ s->pts += av_rescale_q(s->sample_advance, (AVRational){1, outlink->sample_rate}, outlink->time_base);
end:
av_frame_free(&in);
More information about the ffmpeg-cvslog
mailing list