changeset 15103:90670e48d270

Use proper parameter range in stereo test
author henry
date Sun, 10 Apr 2005 16:39:00 +0000
parents 1d3ba9fb75cd
children 209ddda63c46
files mp3lib/layer1.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mp3lib/layer1.c	Sun Apr 10 16:30:53 2005 +0000
+++ b/mp3lib/layer1.c	Sun Apr 10 16:39:00 2005 +0000
@@ -15,7 +15,7 @@
   unsigned int *ba=balloc;
   unsigned int *sca = (unsigned int *) scale_index;
 
-  if(fr->stereo) {
+  if(fr->stereo == 2) {
     int i;
     int jsbound = fr->jsbound;
     for (i=0;i<jsbound;i++) { 
@@ -59,7 +59,7 @@
   register unsigned int *ba;
   register unsigned int *sca = (unsigned int *) scale_index;
 
-  if(fr->stereo) {
+  if(fr->stereo == 2) {
     int jsbound = fr->jsbound;
     register real *f0 = fraction[0];
     register real *f1 = fraction[1];