X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Falsdec.c;h=89e281aaa3c2c086614a299d4173f2f1e15ab673;hb=2aebdfb451bb01165473f9b4d8e6a2c4997e3bf2;hp=ebd364e0850aa1bc7cddf2732f6ff281fa3a5e50;hpb=5eb4073781ee4962adcf8ef2749d5d8f5d104797;p=ffmpeg diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index ebd364e0850..89e281aaa3c 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -729,7 +729,7 @@ static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd) quant_cof[k] = decode_rice(gb, rice_param) + offset; if (quant_cof[k] < -64 || quant_cof[k] > 63) { av_log(avctx, AV_LOG_ERROR, - "quant_cof %"PRIu32" is out of range.\n", + "quant_cof %"PRId32" is out of range.\n", quant_cof[k]); return AVERROR_INVALIDDATA; } @@ -765,7 +765,7 @@ static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd) bd->ltp_gain[0] = decode_rice(gb, 1) << 3; bd->ltp_gain[1] = decode_rice(gb, 2) << 3; - r = get_unary(gb, 0, 3); + r = get_unary(gb, 0, 4); c = get_bits(gb, 2); bd->ltp_gain[2] = ltp_gain_values[r][c]; @@ -1292,13 +1292,13 @@ static int revert_channel_correlation(ALSDecContext *ctx, ALSBlockData *bd, if (ch[dep].time_diff_sign) { t = -t; if (begin < t) { - av_log(ctx->avctx, AV_LOG_ERROR, "begin %td smaller than time diff index %d.\n", begin, t); + av_log(ctx->avctx, AV_LOG_ERROR, "begin %"PTRDIFF_SPECIFIER" smaller than time diff index %d.\n", begin, t); return AVERROR_INVALIDDATA; } begin -= t; } else { if (end < t) { - av_log(ctx->avctx, AV_LOG_ERROR, "end %td smaller than time diff index %d.\n", end, t); + av_log(ctx->avctx, AV_LOG_ERROR, "end %"PTRDIFF_SPECIFIER" smaller than time diff index %d.\n", end, t); return AVERROR_INVALIDDATA; } end -= t;