[xiph-cvs] cvs commit: libshout/src mp3.c
Brendan
brendan at xiph.org
Tue Jul 1 17:24:25 PDT 2003
brendan 03/07/01 20:24:25
Modified: src mp3.c
Log:
framelength off-by-one error for some bitrates (from Pritpaul Mahal)
Revision Changes Path
1.10 +2 -2 libshout/src/mp3.c
Index: mp3.c
===================================================================
RCS file: /usr/local/cvsroot/libshout/src/mp3.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -p -u -r1.9 -r1.10
--- mp3.c 28 Mar 2003 00:38:28 -0000 1.9
+++ mp3.c 2 Jul 2003 00:24:25 -0000 1.10
@@ -1,4 +1,4 @@
-/* -*- c-basic-offset: 8; -*- */
+\/* -*- c-basic-offset: 8; -*- */
/* mp3.c: libshout MP3 format handler */
#include <stdio.h>
@@ -265,7 +265,7 @@ static void parse_header(mp3_header_t *m
mh->samples = 576;
if(mh->samplerate)
- mh->framesize = ((float)mh->samples * mh->bitrate * 1000 / (float)mh->samplerate) / 8 + mh->padding;
+ mh->framesize = (mh->samples * mh->bitrate * 1000 / mh->samplerate) / 8 + mh->padding;
}
/* mp3 frame parsing stuff */
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list