1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-02 01:09:59 +02:00

lavfi/scale: allocate interlaced scalers only if needed.

Fix "Value 0.000000 for parameter 'srch' out of range"
error message when source or destination height is 1.

Note: since the av_opt_set_int() calls are not checked for
failure and the interlaced scalers are not actually used,
this error has no consequence apart from a frightening message
in the log.
This commit is contained in:
Nicolas George 2013-07-18 11:03:56 +02:00
parent 630fc7dcfc
commit ebaf20e94b

View File

@ -287,6 +287,8 @@ static int config_props(AVFilterLink *outlink)
if ((ret = sws_init_context(*s, NULL, NULL)) < 0)
return ret;
if (!scale->interlaced)
break;
}
}