[PATCH] taglib: fix parsing of MPEG properties

Gregory Petrosyan gregory.petrosyan at gmail.com
Thu Oct 25 18:16:23 CEST 2007


Attached patch fixes parsing of some MPEG files.

Bug description: in MPEG::Properties::read(), lastFrameOffset() can
return near-eof pos (e.g., eof - 2, for file ending with 0xff 0xf8), and after

Header lastHeader(d->file->readBlock(4));

no more reads from file can be done, so call to
MPEG::File::nextFrameOffset() in
MPEG::File::firstFrameOffset() will return -1, because,
after initial read, buffer will still be empty.

--
Regards, Gregory.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
Url: http://mail.kde.org/pipermail/taglib-devel/attachments/20071025/7bb70070/attachment.txt 


More information about the taglib-devel mailing list