[xiph-cvs] cvs commit: ices/src mp3.c
Brendan
brendan at xiph.org
Sat Mar 15 10:38:25 PST 2003
brendan 03/03/15 13:38:25
Modified: src mp3.c
Log:
Check for FhG VBR tag as well as Xing
Revision Changes Path
1.24 +3 -3 ices/src/mp3.c
Index: mp3.c
===================================================================
RCS file: /cvs/ice/ices/src/mp3.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- mp3.c 13 Mar 2003 23:06:14 -0000 1.23
+++ mp3.c 15 Mar 2003 18:38:25 -0000 1.24
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
- * $Id: mp3.c,v 1.23 2003/03/13 23:06:14 brendan Exp $
+ * $Id: mp3.c,v 1.24 2003/03/15 18:38:25 brendan Exp $
*/
#include "definitions.h"
@@ -347,10 +347,10 @@
cur = lseek(source->fd, 0, SEEK_CUR);
offset = mp3_data->len - mp3_data->pos;
- /* check for Xing VBR tag */
+ /* check for VBR tag */
lseek(source->fd, 36 - offset, SEEK_CUR);
if (read(source->fd, buf, 4) == 4) {
- if (!strncmp("Xing", buf, 4)) {
+ if (!strncmp("VBRI", buf, 4) || !strncmp("Xing", buf, 4)) {
ices_log_debug("VBR tag found");
lseek(source->fd, cur, SEEK_SET);
return 1;
<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