Commit 29446941 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/shorten: More complete pred_order check

Fixes CID1239055
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2d155881
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment