From 7c119ced99add94e77087a4f6871d8bfec326601 Mon Sep 17 00:00:00 2001 From: Benjamin Larsson Date: Sun, 15 Mar 2009 14:04:25 +0000 Subject: [PATCH] memset when category is >=7, part of cook multichannel Originally committed as revision 17987 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/cook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/cook.c b/libavcodec/cook.c index 3e7ffcff82..b9ff7d19e5 100644 --- a/libavcodec/cook.c +++ b/libavcodec/cook.c @@ -617,7 +617,7 @@ static void decode_vectors(COOKContext* q, int* category, for(j=0 ; jtotal_subbands ; j++) category[band+j]=7; } } - if(index==7) { + if(index>=7) { memset(subband_coef_index, 0, sizeof(subband_coef_index)); memset(subband_coef_sign, 0, sizeof(subband_coef_sign)); }