mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 00:02:52 +00:00
avfilter/vf_mix: set sar to outlink
This commit is contained in:
parent
a9b5af0d19
commit
a1992637ac
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user