1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/aic: fix "warning: comparison of unsigned expression < 0 is always false"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-09-12 16:34:24 +02:00
parent 51dab60c7b
commit bfe1445871

View File

@ -223,7 +223,7 @@ static int aic_decode_coeffs(GetBitContext *gb, int16_t *dst,
break; break;
GET_CODE(val, coeff_type, coeff_bits); GET_CODE(val, coeff_type, coeff_bits);
val++; val++;
if (val >= 0x10000 || val < 0) if (val >= 0x10000)
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
dst[scan[idx]] = val; dst[scan[idx]] = val;
} while (idx < num_coeffs - 1); } while (idx < num_coeffs - 1);
@ -233,7 +233,7 @@ static int aic_decode_coeffs(GetBitContext *gb, int16_t *dst,
for (mb = 0; mb < slice_width; mb++) { for (mb = 0; mb < slice_width; mb++) {
for (idx = 0; idx < num_coeffs; idx++) { for (idx = 0; idx < num_coeffs; idx++) {
GET_CODE(val, coeff_type, coeff_bits); GET_CODE(val, coeff_type, coeff_bits);
if (val >= 0x10000 || val < 0) if (val >= 0x10000)
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
dst[scan[idx]] = val; dst[scan[idx]] = val;
} }