mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 09:12:33 +00:00
Make config_props() return AVERROR(EINVAL) rather than 1 in case of
failed SWScaleContext initialization. Fix issue2546. Originally committed as revision 26395 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
8032d1dee9
commit
dccdd93efc
@ -138,8 +138,10 @@ static int config_props(AVFilterLink *outlink)
|
||||
scale->sws = sws_getContext(inlink ->w, inlink ->h, inlink ->format,
|
||||
outlink->w, outlink->h, outlink->format,
|
||||
scale->flags, NULL, NULL, NULL);
|
||||
if (!scale->sws)
|
||||
return AVERROR(EINVAL);
|
||||
|
||||
return !scale->sws;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
|
||||
|
Loading…
Reference in New Issue
Block a user