[FFmpeg-devel] [PATCH] avcodec/alsdec: treat quant_cof as a signed value
Paul B Mahol
onemda at gmail.com
Sun Mar 6 09:00:47 CET 2016
On 3/5/16, Umair Khan <omerjerk at gmail.com> wrote:
> Signed-off-by: Umair Khan <omerjerk at gmail.com>
> ---
> 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;
> }
> --
> 2.5.0
LGTM
More information about the ffmpeg-devel
mailing list