summaryrefslogtreecommitdiff
path: root/libavcodec/cook.c
diff options
context:
space:
mode:
authorBenjamin Larsson <banan@ludd.ltu.se>2009-03-15 14:04:25 +0000
committerBenjamin Larsson <banan@ludd.ltu.se>2009-03-15 14:04:25 +0000
commit7c119ced99add94e77087a4f6871d8bfec326601 (patch)
tree30ede3d0f5b8ec8874eb75fbed8f2489fd862c13 /libavcodec/cook.c
parent16473c1376cd8501ebc0d44a587c8e4f40a84c50 (diff)
downloadffmpeg-7c119ced99add94e77087a4f6871d8bfec326601.tar.gz
memset when category is >=7, part of cook multichannel
Originally committed as revision 17987 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cook.c')
-rw-r--r--libavcodec/cook.c2
1 files changed, 1 insertions, 1 deletions
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 ; j<q->total_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));
}