[FFmpeg-devel] [PATCH] lavfi/scale: allocate interlaced scalers only if needed.
Michael Niedermayer
michaelni at gmx.at
Thu Jul 18 11:51:59 CEST 2013
On Thu, Jul 18, 2013 at 11:28:43AM +0200, Nicolas George wrote:
> 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.
>
> Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
> ---
> libavfilter/vf_scale.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
> index a71340a..c91bbaa 100644
> --- a/libavfilter/vf_scale.c
> +++ b/libavfilter/vf_scale.c
> @@ -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;
LGTM
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Into a blind darkness they enter who follow after the Ignorance,
they as if into a greater darkness enter who devote themselves
to the Knowledge alone. -- Isha Upanishad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130718/776f75a8/attachment.asc>
More information about the ffmpeg-devel
mailing list