# HG changeset patch # User kostya # Date 1219990493 0 # Node ID 20b105281e8766ba648eb79de30a4dcb5bf5bc37 # Parent a618bba0b6b4b873715ebe7e43e87e6796e682b8 While APE changed container format in 3.98, frequency tables for range coding were changed only in 3.99. This fixes decoding of v3.98 APE file I have. Eternal curses to the creator of such unstable format. diff -r a618bba0b6b4 -r 20b105281e87 apedec.c --- a/apedec.c Fri Aug 29 04:02:04 2008 +0000 +++ b/apedec.c Fri Aug 29 06:14:53 2008 +0000 @@ -372,7 +372,7 @@ { int x, overflow; - if (ctx->fileversion < 3980) { + if (ctx->fileversion < 3990) { int tmpk; overflow = range_get_symbol(ctx, counts_3970, counts_diff_3970);