Commit a1992637 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_mix: set sar to outlink

parent a9b5af0d
...@@ -218,6 +218,7 @@ static int config_output(AVFilterLink *outlink) ...@@ -218,6 +218,7 @@ static int config_output(AVFilterLink *outlink)
AVFilterContext *ctx = outlink->src; AVFilterContext *ctx = outlink->src;
MixContext *s = ctx->priv; MixContext *s = ctx->priv;
AVRational frame_rate = ctx->inputs[0]->frame_rate; AVRational frame_rate = ctx->inputs[0]->frame_rate;
AVRational sar = ctx->inputs[0]->sample_aspect_ratio;
AVFilterLink *inlink = ctx->inputs[0]; AVFilterLink *inlink = ctx->inputs[0];
int height = ctx->inputs[0]->h; int height = ctx->inputs[0]->h;
int width = ctx->inputs[0]->w; int width = ctx->inputs[0]->w;
...@@ -252,6 +253,7 @@ static int config_output(AVFilterLink *outlink) ...@@ -252,6 +253,7 @@ static int config_output(AVFilterLink *outlink)
outlink->w = width; outlink->w = width;
outlink->h = height; outlink->h = height;
outlink->frame_rate = frame_rate; outlink->frame_rate = frame_rate;
outlink->sample_aspect_ratio = sar;
if ((ret = ff_framesync_init(&s->fs, ctx, s->nb_inputs)) < 0) if ((ret = ff_framesync_init(&s->fs, ctx, s->nb_inputs)) < 0)
return ret; return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment