openbsd-ports/x11/mplayer/patches/patch-mp3lib_layer2_c
biorn f5271b838d Update to 1.0pre7
Don't depend on ogg/vorbis as it's built in now
Put fontconfig and freetype in WANTLIB and BUILD_DEPEND on pkgconfig if
 FLAVOR is not no_x11.
2005-05-09 12:24:38 +00:00

16 lines
541 B
Plaintext

$OpenBSD: patch-mp3lib_layer2_c,v 1.2 2005/05/09 12:24:38 biorn Exp $
--- mp3lib/layer2.c.orig Sat Apr 16 00:21:34 2005
+++ mp3lib/layer2.c Wed Apr 20 06:35:55 2005
@@ -294,6 +294,11 @@ static int do_layer2(struct frame *fr,in
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;