[prev in list] [next in list] [prev in thread] [next in thread] 

List:       taglib-devel
Subject:    [PATCH] Add support for CBR Xing headers
From:       "Xavier Duret" <xaviour.maillists () gmail ! com>
Date:       2007-01-17 19:51:46
Message-ID: d3ef58310701171151j7cd8a993s83b39971b2db96ce () mail ! gmail ! com
[Download RAW message or body]

This patch adds support for "Info" headers. This type of header is
used in CBR files. It contains the number of frames in the file which
allows calculating the song duration more accurately than by using
other techniques.


diff -ruN taglib.old/taglib/mpeg/xingheader.cpp
taglib/taglib/mpeg/xingheader.cpp
--- taglib.old/taglib/mpeg/xingheader.cpp       2007-01-17
16:01:31.000000000 +0100
+++ taglib/taglib/mpeg/xingheader.cpp   2007-01-17 19:25:56.000000000 +0100
@@ -88,7 +88,7 @@
 {
   // Check to see if a valid Xing header is available.

-  if(!data.startsWith("Xing"))
+  if(!data.startsWith("Xing") && !data.startsWith("Info"))
     return;

   // If the XingHeader doesn't contain the number of frames and the
total stream
_______________________________________________
taglib-devel mailing list
taglib-devel@kde.org
https://mail.kde.org/mailman/listinfo/taglib-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic