mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
vf_scale.c: propagate error code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ef74ab20c2
commit
8447703c16
@ -237,7 +237,7 @@ static int config_props(AVFilterLink *outlink)
|
|||||||
scale->isws[1] = sws_getContext(inlink ->w, inlink ->h/2, inlink ->format,
|
scale->isws[1] = sws_getContext(inlink ->w, inlink ->h/2, inlink ->format,
|
||||||
outlink->w, outlink->h/2, outlink->format,
|
outlink->w, outlink->h/2, outlink->format,
|
||||||
scale->flags, NULL, NULL, NULL);
|
scale->flags, NULL, NULL, NULL);
|
||||||
if (!scale->sws)
|
if (!scale->sws || !scale->isws[0] || !scale->isws[1])
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
|
|
||||||
if (inlink->sample_aspect_ratio.num){
|
if (inlink->sample_aspect_ratio.num){
|
||||||
|
Loading…
Reference in New Issue
Block a user