Hi,

On Wed, Apr 20, 2011 at 7:45 PM, Anton Khirnov <[email protected]> wrote:
> From: Michael Niedermayer <[email protected]>
>
> Signed-off-by: Anton Khirnov <[email protected]>
> ---
>  libavfilter/vf_scale.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
> index ae04802..831196c 100644
> --- a/libavfilter/vf_scale.c
> +++ b/libavfilter/vf_scale.c
> @@ -144,6 +144,8 @@ static int config_props(AVFilterLink *outlink)
>
>     scale->input_is_pal = av_pix_fmt_descriptors[inlink->format].flags & 
> PIX_FMT_PAL;
>
> +    if(scale->sws)
> +        sws_freeContext(scale->sws);
>     scale->sws = sws_getContext(inlink ->w, inlink ->h, inlink ->format,
>                                 outlink->w, outlink->h, outlink->format,
>                                 scale->flags, NULL, NULL, NULL);

I don't mind if you commit this _without_ 20, but this is not correct
in combination with 20.

Ronald
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to