aboutsummaryrefslogtreecommitdiffhomepage
path: root/mp3lib
diff options
context:
space:
mode:
authorGravatar henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-10 16:39:00 +0000
committerGravatar henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-10 16:39:00 +0000
commit316d1bd49e8a71640d9555ad21497de47e580f25 (patch)
tree83a2e24f71bb0f5e23e37d6ada10794b45b8553d /mp3lib
parent892980bfd01f378a507c02a4b3cff2c55673682e (diff)
Use proper parameter range in stereo test
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15104 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp3lib')
-rw-r--r--mp3lib/layer1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mp3lib/layer1.c b/mp3lib/layer1.c
index 4af0933823..e84e9f5ea5 100644
--- a/mp3lib/layer1.c
+++ b/mp3lib/layer1.c
@@ -15,7 +15,7 @@ static void I_step_one(unsigned int balloc[], unsigned int scale_index[2][SBLIMI
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 @@ static void I_step_two(real fraction[2][SBLIMIT],unsigned int balloc[2*SBLIMIT],
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];