This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9186 - flac decoder doesn't handle truncated files nicely
Attached to Project:
Rockbox
Opened by PaulJam (PaulJam) - Friday, 11 July 2008, 17:54 GMT+2
Last edited by Jonas Häggqvist (rasher) - Thursday, 11 December 2008, 19:06 GMT+2
Opened by PaulJam (PaulJam) - Friday, 11 July 2008, 17:54 GMT+2
Last edited by Jonas Häggqvist (rasher) - Thursday, 11 December 2008, 19:06 GMT+2
|
DetailsWhen you play back a broken flac file (in this case a file that was truncated) it can happen that he decoder outputs constant loud noise instead of just skipping to the next track.
I'm not sure if this is really a bug since you are not supposed to play back broken files. Attached is a file where this happens. H300 r18009 (happens in the uisim too). |
This task depends upon
I think this counts as a bug - Rockbox should be more tolerant of faulty files.
I have tested this code on simulators of Apple Ipod 4G Grayscale and Philips GoGear HDD6330 where it worked perfectly.
Earlier , when " Melodisch4.flac " (which is a corrupted file, included above) was played on these players , as soon as the progress of the play reached the broken part of the file , the player started producing constant loud noises and was struck at that point. But now , after applying this patch , as soon as the progress reaches the broken part , execution of that file stops and the next song in the playlist starts playing automatically.
1) Theres a lot of unrelated changes in that patch. Things like moving white space, brackets, etc. You should avoid those since they confuse the SVN history and make it difficult to review the patch.
2) calc_power(2,(int)s->bps) is the same as 2<<(s->bps) because a shift is the same as raising to the power of two. I think the calc_power function can be avoided entirely.
Oh, and yeah, this only goes for the LPC decoding, I haven't looked too closely at the fixed decoder parts.
I am resubmitting the patch appending modifications as per your comments.
Thanks !
Please , review it again....:)