On 07/03/12 14:18, Ronald S. Bultje wrote:
> From: "Ronald S. Bultje" <rsbul...@gmail.com>
> 
> Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
> CC: libav-sta...@libav.org
> ---
>  libavcodec/wmadec.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c
> index 37feca1..a730059 100644
> --- a/libavcodec/wmadec.c
> +++ b/libavcodec/wmadec.c
> @@ -356,7 +356,7 @@ static int decode_exp_vlc(WMACodecContext *s, int ch)
>          }
>          /* NOTE: this offset is the same as MPEG4 AAC ! */
>          last_exp += code - 60;
> -        if ((unsigned)last_exp + 60 > FF_ARRAY_ELEMS(pow_tab)) {
> +        if ((unsigned)last_exp + 60 >= FF_ARRAY_ELEMS(pow_tab)) {
>              av_log(s->avctx, AV_LOG_ERROR, "Exponent out of range: %d\n",
>                     last_exp);
>              return -1;

Ok

-- 

Luca Barbato
Gentoo/linux
http://dev.gentoo.org/~lu_zero

_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to