[FFmpeg-devel] [PATCH 3/4] vf_scale: dont overwrite expression strings on parameter changes.

Stefano Sabatini stefasab at gmail.com
Tue Jul 17 09:22:47 CEST 2012


On date Monday 2012-07-16 20:17:34 +0200, Michael Niedermayer encoded:
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> ---
>  libavfilter/vf_scale.c |    2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
> index 7df03fc..2a36399 100644
> --- a/libavfilter/vf_scale.c
> +++ b/libavfilter/vf_scale.c
> @@ -282,8 +282,6 @@ static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
>         || picref->video->h != link->h
>         || picref->format   != link->format) {
>          int ret;
> -        snprintf(scale->w_expr, sizeof(scale->w_expr)-1, "%d", outlink->w);
> -        snprintf(scale->h_expr, sizeof(scale->h_expr)-1, "%d", outlink->h);

Should be good (note that I don't know why it was added in the first place).
-- 
FFmpeg = Fierce and Fabulous Mastering Perfectionist Experimenting Ghost


More information about the ffmpeg-devel mailing list