[vlc-devel] [PATCH] flac: fix extradata clamping check

Rafaël Carré rafael.carre at gmail.com
Wed Nov 27 01:09:34 CET 2013


Hi,

2013/11/25 Tristan Matthews <le.businessman at gmail.com>:
> ---
>  modules/codec/flac.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/modules/codec/flac.c b/modules/codec/flac.c
> index 72a12bc..a43983a 100644
> --- a/modules/codec/flac.c
> +++ b/modules/codec/flac.c
> @@ -389,7 +389,7 @@ static void ProcessHeader( decoder_t *p_dec )
>
>      if (i_extra > 42 && !memcmp(p_dec->fmt_in.p_extra, header, 4))
>          i_extra = 42;
> -    else if (i_extra > 34 && memcmp(p_dec->fmt_in.p_extra, header, 4))
> +    else if (i_extra > 34 && !memcmp(p_dec->fmt_in.p_extra, header, 4))
>          i_extra = 34;
>
>      switch (i_extra) {
> --
> 1.8.1.2

OK

-- 
Rafaël Carré



More information about the vlc-devel mailing list