add: if (fr->jsbound > fr->II_sblimit) { fprintf(stderr, "libmpg123 layer2: Truncating stereo boundary to sideband limit.\n"); fr->jsbound=fr->II_sblimit; }
context: int do_layer2(struct mpstr *mp, struct frame *fr,unsigned char *pcm_sample,int *pcm_point){  int clip=0;  int i,j;  int stereo = fr->stereo;  real fraction[2][4][SBLIMIT]; /* pick_table clears unused subbands */  unsigned int bit_alloc[64];  int scale[192];  int single = fr->single;  II_select_table(fr);  fr->jsbound = (fr->mode == MPG_MD_JOINT_STEREO) ?     (fr->mode_ext<<2)+4 : fr->II_sblimit;  if(stereo == 1 || single == 3)    single = 0;  II_step_one(mp, bit_alloc, scale, fr);  for (i=0;i<SCALE_BLOCK;i++)   {    II_step_two(mp, bit_alloc, fraction, scale, fr, i>>2);    for (j=0;j<3;j++) {      if(single >= 0) {        clip += synth_1to1_mono(mp, fraction[0][j],pcm_sample,pcm_point);      }      else {        int p1 = *pcm_point;        clip += synth_1to1(mp, fraction[0][j],0,pcm_sample,&p1);        clip += synth_1to1(mp, fraction[1][j],1,pcm_sample,pcm_point);      }    }  }  return clip;}