--- 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;