Commit 8447703c authored by Michael Niedermayer's avatar Michael Niedermayer

vf_scale.c: propagate error code

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ef74ab20
......@@ -237,7 +237,7 @@ static int config_props(AVFilterLink *outlink)
scale->isws[1] = sws_getContext(inlink ->w, inlink ->h/2, inlink ->format,
outlink->w, outlink->h/2, outlink->format,
scale->flags, NULL, NULL, NULL);
if (!scale->sws)
if (!scale->sws || !scale->isws[0] || !scale->isws[1])
return AVERROR(EINVAL);
if (inlink->sample_aspect_ratio.num){
......
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