comparison apedec.c @ 7723:20b105281e87 libavcodec

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.
author kostya
date Fri, 29 Aug 2008 06:14:53 +0000
parents 85ab7655ad4d
children 4525dcd81357
comparison
equal deleted inserted replaced
7722:a618bba0b6b4 7723:20b105281e87
370 370
371 static inline int ape_decode_value(APEContext * ctx, APERice *rice) 371 static inline int ape_decode_value(APEContext * ctx, APERice *rice)
372 { 372 {
373 int x, overflow; 373 int x, overflow;
374 374
375 if (ctx->fileversion < 3980) { 375 if (ctx->fileversion < 3990) {
376 int tmpk; 376 int tmpk;
377 377
378 overflow = range_get_symbol(ctx, counts_3970, counts_diff_3970); 378 overflow = range_get_symbol(ctx, counts_3970, counts_diff_3970);
379 379
380 if (overflow == (MODEL_ELEMENTS - 1)) { 380 if (overflow == (MODEL_ELEMENTS - 1)) {