Jason Tackaberry wrote:
> On Fri, 2006-11-17 at 09:08 +0100, Duncan Webb wrote:
>> Maybe I'm calling this incorrectly but it doesn't seem to matter which
>> mp3 file that is used it always complains about a Corrupt Xing header.
>
> This may have been related to the recent check-in I did to tag.py.
> Unfortunately in the process of updating to the latest eyeD3 you've
> reversed this check-in. Could you try merging the update I did in r2012
> and try your test again?
I could do but it was in this part of the code that it was failing.
It was correctly finding the frame in this code:
+ while not frameHead and n_chunks < 10:
+ bString = bString[-3:] + f.read(32768)
+ n_chunks += 1
+ if len(bString) <= 3:
+ break
+
+ frameHead, offset = header.find(bString)
+
+ if not frameHead:
+ raise InvalidAudioFormatException("Unable to find a valid mp3
frame")
It found the Xing frame okay here:
if mp3Frame.find("Xing") != -1:
xingHeader = mp3.XingHeader();
But then failed here:
if not xingHeader.decode(mp3Frame):
raise InvalidAudioFormatException("Corrupt Xing header");
Duncan
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel