[Paranoia-dev] Bug report: paranoia mode reads incorrect track, -Z reads correct track
fuhsaz+cdparanoia at cryptic.li
fuhsaz+cdparanoia at cryptic.li
Mon Dec 12 23:21:35 UTC 2016
On Wed, Aug 10, 2016 at 06:43:44PM -0400, fuhsaz+cdparanoia at cryptic.li wrote:
> While working on some software based on cdparanoia-III-10.2[0], I have
> discovered what I think is a bug in cdparanoia:
>
> Writing a wav[1] with md5sum 3b265ba06de8cd27f200e79447c58035 to a disc
> and then ripping in default full-paranoia mode will result in a track
> with incorrect md5sum 063fa2d2df295f7dbfad8d75ce0aeafa -- however,
> ripping with paranoia disabled (-Z) will yield the correct track rip.[2]
A developer who wishes to remain anonymous has contributed a bugfix,
with two alternative implementations:
> Pretty sure I fixed the cdparanoia bug. It actually wasn't in a silence
> block. There were 2 identical 109 samples of data in the track right
> near each other. cdparanoia was matching the second one with the first
> one and saying it was jitter.
> This fix doesn't lose out on any error correcting capablities. In the
> case of multiple matching runs it picks the one with the smallest
> (absolute value) offset (diff 1) or the one with the longest match (diff
> 2). Since multiple matching runs should be extremely rare, the impact of
> this change on other rips should be almost nonexistent. Both diffs fix
> the Julie Roberts track 5 bug.
I have attached the two diffs.
--
Samantha Baldwin - logik.li
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cdparanoia-longest-match.patch
Type: text/x-diff
Size: 2553 bytes
Desc: not available
URL: <http://lists.xiph.org/pipermail/paranoia-dev/attachments/20161212/20047633/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cdparanoia-smallest-offset.patch
Type: text/x-diff
Size: 2668 bytes
Desc: not available
URL: <http://lists.xiph.org/pipermail/paranoia-dev/attachments/20161212/20047633/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.xiph.org/pipermail/paranoia-dev/attachments/20161212/20047633/attachment.sig>
More information about the Paranoia-dev
mailing list