summaryrefslogtreecommitdiff
path: root/libavcodec/shorten.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-15 17:02:28 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-15 17:02:28 +0200
commit294469416d8193a28710d802bb0c46e5fa09fad7 (patch)
treecb789f7ce0b62eddcd2c06ba3ecbc6681ad3084b /libavcodec/shorten.c
parent2d15588124ab1d4c0612cab66f02a716f1509211 (diff)
avcodec/shorten: More complete pred_order check
Fixes CID1239055 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/shorten.c')
-rw-r--r--libavcodec/shorten.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/shorten.c b/libavcodec/shorten.c
index c7909f2d17..db2e3c5feb 100644
--- a/libavcodec/shorten.c
+++ b/libavcodec/shorten.c
@@ -277,7 +277,7 @@ static int decode_subframe_lpc(ShortenContext *s, int command, int channel,
if (command == FN_QLPC) {
/* read/validate prediction order */
pred_order = get_ur_golomb_shorten(&s->gb, LPCQSIZE);
- if (pred_order > s->nwrap) {
+ if ((unsigned)pred_order > s->nwrap) {
av_log(s->avctx, AV_LOG_ERROR, "invalid pred_order %d\n",
pred_order);
return AVERROR(EINVAL);