On Sat, Sep 17, 2011 at 04:56:35PM +0200, [email protected] wrote:
> From: Laurent Aimar <[email protected]>
> 
> ---
>  libavcodec/cook.c |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/libavcodec/cook.c b/libavcodec/cook.c
> index b5492db..13f2dd6 100644
> --- a/libavcodec/cook.c
> +++ b/libavcodec/cook.c
> @@ -1174,8 +1174,9 @@ static av_cold int cook_decode_init(AVCodecContext 
> *avctx)
>              return -1;
>          }
>  
> -        if ((q->subpacket[s].js_vlc_bits > 6) || 
> (q->subpacket[s].js_vlc_bits < 0)) {
> -            av_log(avctx,AV_LOG_ERROR,"js_vlc_bits = %d, only >= 0 and <= 6 
> allowed!\n",q->subpacket[s].js_vlc_bits);
> +        if ((q->subpacket[s].js_vlc_bits > 6) || 
> (q->subpacket[s].js_vlc_bits < 2*q->subpacket[s].joint_stereo)) {
> +            av_log(avctx,AV_LOG_ERROR,"js_vlc_bits = %d, only >= %d and <= 6 
> allowed!\n",
> +                   q->subpacket[s].js_vlc_bits, 
> 2*q->subpacket[s].joint_stereo);
>              return -1;
>          }

Ping.

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

Reply via email to