[FFmpeg-cvslog] avfilter/af_amultiply: set output frame duration

Paul B Mahol git at videolan.org
Tue Nov 28 14:15:18 EET 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Nov 28 12:55:16 2023 +0100| [358aced447fb1fe11da8bf888dab4e9cade7bcdf] | committer: Paul B Mahol

avfilter/af_amultiply: set output frame duration

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=358aced447fb1fe11da8bf888dab4e9cade7bcdf
---

 libavfilter/af_amultiply.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/af_amultiply.c b/libavfilter/af_amultiply.c
index 7871487cdd..4ae355c794 100644
--- a/libavfilter/af_amultiply.c
+++ b/libavfilter/af_amultiply.c
@@ -74,6 +74,7 @@ static int activate(AVFilterContext *ctx)
             return AVERROR(ENOMEM);
 
         out->pts = s->frames[0]->pts;
+        out->duration = s->frames[0]->duration;
 
         if (av_get_packed_sample_fmt(ctx->inputs[0]->format) == AV_SAMPLE_FMT_FLT) {
             for (i = 0; i < s->planes; i++) {



More information about the ffmpeg-cvslog mailing list