Sophie

Sophie

distrib > Altlinux > 4.1 > i586 > by-pkgid > 8fce25bd25628597c13032ac13351dd2 > files > 8

mpg123-0.59s-alt0.9.src.rpm

--- mpg123~/layer2.c	2001-01-23 15:10:02 +0000
+++ mpg123/layer2.c	2004-09-08 13:38:26 +0000
@@ -287,6 +287,11 @@ int do_layer2(struct mpstr *mp,struct fr
   fr->jsbound = (fr->mode == MPG_MD_JOINT_STEREO) ?
      (fr->mode_ext<<2)+4 : fr->II_sblimit;
 
+  if (fr->jsbound > fr->II_sblimit) {
+         fprintf(stderr, "Truncating stereo boundary to sideband limit.\n");
+         fr->jsbound=fr->II_sblimit;
+  }
+
   if(stereo == 1 || single == 3)
     single = 0;