On Sun, Feb 15, 2015 at 2:44 PM, Federico Tomassetti
<[email protected]> wrote:
> Bug-Id: CID 1267888
> Bug-Id: CID 1267890

nit: this can go on a single line, like

> Bug-Id: CID 1267888 / CID 1267890

> CC: [email protected]
> ---
>  libswscale/utils.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
>
> diff --git a/libswscale/utils.c b/libswscale/utils.c
> index b3df1af..5b6e339 100644
> --- a/libswscale/utils.c
> +++ b/libswscale/utils.c
> @@ -1382,6 +1382,15 @@ SwsFilter *sws_getDefaultFilter(float lumaGBlur, float 
> chromaGBlur,
>          filter->chrV = sws_getIdentityVec();
>      }
>
> +    if (!filter->lumH || !filter->lumV || !filter->chrH || !filter->chrV) {
> +        sws_freeVec(filter->lumH);
> +        sws_freeVec(filter->lumV);
> +        sws_freeVec(filter->chrH);
> +        sws_freeVec(filter->chrV);
> +        av_free(filter);

av_freep(&filter);

I'll push with these amendments, thanks.
Vittorio
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to