summaryrefslogtreecommitdiff
path: root/apps/codecs/libtremor/mapping0.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libtremor/mapping0.c')
-rw-r--r--apps/codecs/libtremor/mapping0.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/codecs/libtremor/mapping0.c b/apps/codecs/libtremor/mapping0.c
index 9284775718..9042b9c174 100644
--- a/apps/codecs/libtremor/mapping0.c
+++ b/apps/codecs/libtremor/mapping0.c
@@ -147,8 +147,10 @@ static vorbis_info_mapping *mapping0_unpack(vorbis_info *vi,oggpack_buffer *opb)
147 info->coupling_steps=oggpack_read(opb,8)+1; 147 info->coupling_steps=oggpack_read(opb,8)+1;
148 if(info->coupling_steps<=0)goto err_out; 148 if(info->coupling_steps<=0)goto err_out;
149 for(i=0;i<info->coupling_steps;i++){ 149 for(i=0;i<info->coupling_steps;i++){
150 int testM=info->coupling_mag[i]=oggpack_read(opb,ilog(vi->channels)); 150 int testM=oggpack_read(opb,ilog(vi->channels));
151 int testA=info->coupling_ang[i]=oggpack_read(opb,ilog(vi->channels)); 151 info->coupling_mag[i]=testM;
152 int testA=oggpack_read(opb,ilog(vi->channels));
153 info->coupling_ang[i]=testA;
152 154
153 if(testM<0 || 155 if(testM<0 ||
154 testA<0 || 156 testA<0 ||