ports/audio/mpg123/files/patch-CAN-2004-0991
Roman Bogorodskiy ef47d1dfcc Fix wrong handling of mp3 files with id3 tag "genre" = 148
Approved by:	krion (mentor)
2005-03-10 16:08:02 +00:00

11 lines
404 B
Text

--- layer2.c.orig Tue Sep 7 14:32:13 2004
+++ layer2.c Sat Jan 1 20:21:47 2005
@@ -240,7 +240,7 @@
{ alloc_0, alloc_1, alloc_2, alloc_3 , alloc_4 };
static int sblims[5] = { 27 , 30 , 8, 12 , 30 };
- if(fr->lsf)
+ if(fr->sampling_frequency >= 3) /* Or equivalent: (fr->lsf == 1) */
table = 4;
else
table = translate[fr->sampling_frequency][2-fr->stereo][fr->bitrate_index];