diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-05-24 18:35:27 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-05-24 18:37:41 +0200 |
commit | a1992637ace2c182951be5a7f25ed7eb0c68556f (patch) | |
tree | 60be61b393fd994b27ff00addd6ee2123fb4e6bd | |
parent | a9b5af0d19323f944ddf758a1d6823734bf97373 (diff) | |
download | ffmpeg-a1992637ace2c182951be5a7f25ed7eb0c68556f.tar.gz |
avfilter/vf_mix: set sar to outlink
-rw-r--r-- | libavfilter/vf_mix.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/vf_mix.c b/libavfilter/vf_mix.c index 53f2059a91..b5a282ad4c 100644 --- a/libavfilter/vf_mix.c +++ b/libavfilter/vf_mix.c @@ -218,6 +218,7 @@ static int config_output(AVFilterLink *outlink) AVFilterContext *ctx = outlink->src; MixContext *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; @@ -252,6 +253,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; |