[xiph-cvs] cvs commit: positron/positron MP3Info.py

Stan Seibert volsung at xiph.org
Sat May 24 15:50:48 PDT 2003



volsung     03/05/24 18:50:47

  Modified:    positron MP3Info.py
  Log:
  ID3v2 headers don't have to avoid the MPEG sync bytes, it's only "suggested".
  Skip over the id3v2 before looking for the header.

Revision  Changes    Path
1.4       +1 -1      positron/positron/MP3Info.py

Index: MP3Info.py
===================================================================
RCS file: /usr/local/cvsroot/positron/positron/MP3Info.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- MP3Info.py	23 May 2003 02:56:41 -0000	1.3
+++ MP3Info.py	24 May 2003 22:50:47 -0000	1.4
@@ -437,7 +437,7 @@
             self.id3 = id3
 
         if id3v2.valid:
-            self.mpeg = MPEG(file)
+            self.mpeg = MPEG(file, seekstart=id3v2.header_size)
         else:
             # Header better be the first thing if there is no ID3v2
             self.mpeg = MPEG(file, seeklimit=4)

<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