[FFmpeg-cvslog] avfilter/vf_xmedian: set sar to outlink

Paul B Mahol git at videolan.org
Fri May 24 19:40:32 EEST 2019


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri May 24 18:37:08 2019 +0200| [5073adcc42d79b2691c564f865bea11023dec53d] | committer: Paul B Mahol

avfilter/vf_xmedian: set sar to outlink

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

 libavfilter/vf_xmedian.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/vf_xmedian.c b/libavfilter/vf_xmedian.c
index 0e1b365c82..ae61e18098 100644
--- a/libavfilter/vf_xmedian.c
+++ b/libavfilter/vf_xmedian.c
@@ -237,6 +237,7 @@ static int config_output(AVFilterLink *outlink)
     AVFilterContext *ctx = outlink->src;
     XMedianContext *s = ctx->priv;
     AVRational frame_rate = ctx->inputs[0]->frame_rate;
+    AVRational sar = ctx->inputs[0]->sample_aspect_ratio;
     AVFilterLink *inlink = ctx->inputs[0];
     int height = ctx->inputs[0]->h;
     int width = ctx->inputs[0]->w;
@@ -273,6 +274,7 @@ static int config_output(AVFilterLink *outlink)
     outlink->w          = width;
     outlink->h          = height;
     outlink->frame_rate = frame_rate;
+    outlink->sample_aspect_ratio = sar;
 
     if ((ret = ff_framesync_init(&s->fs, ctx, s->nb_inputs)) < 0)
         return ret;



More information about the ffmpeg-cvslog mailing list