[FFmpeg-cvslog] avcodec/alsdec: treat quant_cof as a signed value

Umair Khan git at videolan.org
Sun Mar 6 13:24:45 CET 2016


ffmpeg | branch: master | Umair Khan <omerjerk at gmail.com> | Sun Mar  6 03:24:18 2016 +0530| [7d6c264e022758b0c0e6958c466c02812b132683] | committer: Michael Niedermayer

avcodec/alsdec: treat quant_cof as a signed value

Signed-off-by: Umair Khan <omerjerk at gmail.com>
Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7d6c264e022758b0c0e6958c466c02812b132683
---

 libavcodec/alsdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index ebd364e..0043512 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;
                     }



More information about the ffmpeg-cvslog mailing list