avcodec/alsdec: treat quant_cof as a signed value
authorUmair Khan <omerjerk@gmail.com>
Sat, 5 Mar 2016 21:36:18 +0000 (03:06 +0530)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 6 Mar 2016 12:11:29 +0000 (13:11 +0100)
Signed-off-by: Umair Khan <omerjerk@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/alsdec.c

index ebd364e..0043512 100644 (file)
@@ -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;
                     }