[MPlayer-dev-eng] [PATCH] Fix for decoding of mp1 mono files

Milan Cutka cutka at szm.sk
Thu Feb 10 09:21:47 CET 2005


RCS file: /cvsroot/mplayer/main/mp3lib/layer1.c,v
retrieving revision 1.1
diff -u -r1.1 layer1.c
--- layer1.c    24 Jul 2003 22:12:58 -0000      1.1
+++ layer1.c    10 Feb 2005 08:17:28 -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];





More information about the MPlayer-dev-eng mailing list