This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#10111 - Pops and clicks when playing 24 bit FLAC files
Attached to Project:
Rockbox
Opened by Boris Gjenero (dreamlayers) - Thursday, 09 April 2009, 06:41 GMT+2
Last edited by Boris Gjenero (dreamlayers) - Friday, 10 April 2009, 04:16 GMT+2
Opened by Boris Gjenero (dreamlayers) - Thursday, 09 April 2009, 06:41 GMT+2
Last edited by Boris Gjenero (dreamlayers) - Friday, 10 April 2009, 04:16 GMT+2
|
DetailsWhen playing 24 bit FLAC files I can hear some pops. For example, a 27 second 44100 Hz 24 bit FLAC file encoded by flac-1.2.1 has about 5 pops of varying intensity. They are always at the same positions. There are no pops when Winamp plays the same FLAC file or when Rockbox plays a 44100 Hz 24 bit WAV version of the same sound.
This is on my 5G 30GB iPod running r20636. The problem was first reported on 24/96 FLAC file on an iRiver iHP -120 by Kitlope at: http://forums.rockbox.org/index.php?topic=21255 |
This task depends upon
Closed by Boris Gjenero (dreamlayers)
Friday, 10 April 2009, 04:16 GMT+2
Reason for closing: Fixed
Additional comments about closing: Fixed in r20671
Friday, 10 April 2009, 04:16 GMT+2
Reason for closing: Fixed
Additional comments about closing: Fixed in r20671
http://www.mail-archive.com/ffmpeg-issues%40live.polito.it/msg00393.html
According to that post the problem is due to improper decoding of RICE2 entropy coding.
Then the fix was fixed in ffmpeg r15338 by michael: http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/2008-September/017057.html
Finally, another fix was applied to that line in ffmpeg r17550 by mru: http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/2009-February/020548.html
The last fix is irrelevant because MIN_CACHE_BITS is 25 and Rockbox doesn't have A32_BITSTREAM_READER. I still think including the last fix is a good thing, in case the ARM-optimized A32_BITSTREAM_READER is added in the future. Here is a patch with the final form of the fix. This code is also used in the Shorten (SHN) codec.
Unfortunately, I haven't taken the time to understand this code. All I can say is that it makes the pops go away and it is the only change in get_ur_golomb_jpegls() in ffmpeg-0.5.