|
@@ -496,6 +496,7 @@ static inline int ape_decode_value_3860(APEContext *ctx, GetBitContext *gb, |
|
|
x = (overflow << rice->k) + get_bits(gb, rice->k); |
|
|
x = (overflow << rice->k) + get_bits(gb, rice->k); |
|
|
} else { |
|
|
} else { |
|
|
av_log(ctx->avctx, AV_LOG_ERROR, "Too many bits: %"PRIu32"\n", rice->k); |
|
|
av_log(ctx->avctx, AV_LOG_ERROR, "Too many bits: %"PRIu32"\n", rice->k); |
|
|
|
|
|
ctx->error = 1; |
|
|
return AVERROR_INVALIDDATA; |
|
|
return AVERROR_INVALIDDATA; |
|
|
} |
|
|
} |
|
|
rice->ksum += x - (rice->ksum + 8 >> 4); |
|
|
rice->ksum += x - (rice->ksum + 8 >> 4); |
|
|