summaryrefslogtreecommitdiffstats
path: root/libavcodec/aic.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-09-12 16:34:24 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-09-12 17:14:55 +0200
commitbfe1445871771493d97cfd75489b4231177ebc84 (patch)
tree90cfc5b8d9b6c64db8407e418ed2dd78bf8dda7d /libavcodec/aic.c
parent51dab60c7b91a21ec280c7d3042aa8350aae048f (diff)
downloadffmpeg-streaming-bfe1445871771493d97cfd75489b4231177ebc84.zip
ffmpeg-streaming-bfe1445871771493d97cfd75489b4231177ebc84.tar.gz
avcodec/aic: fix "warning: comparison of unsigned expression < 0 is always false"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/aic.c')
-rw-r--r--libavcodec/aic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/aic.c b/libavcodec/aic.c
index 40c18c6..70e9f3f 100644
--- a/libavcodec/aic.c
+++ b/libavcodec/aic.c
@@ -223,7 +223,7 @@ static int aic_decode_coeffs(GetBitContext *gb, int16_t *dst,
break;
GET_CODE(val, coeff_type, coeff_bits);
val++;
- if (val >= 0x10000 || val < 0)
+ if (val >= 0x10000)
return AVERROR_INVALIDDATA;
dst[scan[idx]] = val;
} 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 (idx = 0; idx < num_coeffs; idx++) {
GET_CODE(val, coeff_type, coeff_bits);
- if (val >= 0x10000 || val < 0)
+ if (val >= 0x10000)
return AVERROR_INVALIDDATA;
dst[scan[idx]] = val;
}
OpenPOWER on IntegriCloud