diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-05-24 18:37:08 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-05-24 18:37:41 +0200 |
commit | 5073adcc42d79b2691c564f865bea11023dec53d (patch) | |
tree | ec41f6c8986d8afd71ce48d61c0f33ac907400f4 /libavfilter/vf_xmedian.c | |
parent | a1992637ace2c182951be5a7f25ed7eb0c68556f (diff) | |
download | ffmpeg-5073adcc42d79b2691c564f865bea11023dec53d.tar.gz |
avfilter/vf_xmedian: set sar to outlink
Diffstat (limited to 'libavfilter/vf_xmedian.c')
-rw-r--r-- | libavfilter/vf_xmedian.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |