$OpenBSD: patch-layer2_c,v 1.1.4.1 2004/09/09 19:55:22 robert Exp $ --- layer2.c.orig Tue Sep 7 15:13:46 2004 +++ layer2.c Tue Sep 7 15:14:44 2004 @@ -265,6 +265,11 @@ int do_layer2(struct frame *fr,int outmo 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;