Commit d33e0c6b authored by Michael Niedermayer's avatar Michael Niedermayer Committed by Anton Khirnov
Browse files

vf_scale: apply the same transform to the aspect during init that is applied per frame


Signed-off-by: default avatarAnton Khirnov <anton@khirnov.net>
parent 80de930a
......@@ -218,6 +218,14 @@ static int config_props(AVFilterLink *outlink)
if (!scale->sws)
return AVERROR(EINVAL);
if (inlink->sample_aspect_ratio.num)
outlink->sample_aspect_ratio = av_mul_q((AVRational){outlink->h*inlink->w,
outlink->w*inlink->h},
inlink->sample_aspect_ratio);
else
outlink->sample_aspect_ratio = inlink->sample_aspect_ratio;
return 0;
fail:
......
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