diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-15 17:02:28 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-10 02:13:11 +0200 |
commit | f58c9746c3972873e80b385846a451c479d69d6e (patch) | |
tree | 486fa267bcdebeeab154b4c9e10067e8bf55ee1e | |
parent | a7c8dc67e773d8591cd29cbfb8b4ab586c3ba160 (diff) | |
download | ffmpeg-f58c9746c3972873e80b385846a451c479d69d6e.tar.gz |
avcodec/shorten: More complete pred_order check
Fixes CID1239055
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 294469416d8193a28710d802bb0c46e5fa09fad7)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/shorten.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/shorten.c b/libavcodec/shorten.c index a512759fd4..70b032aafc 100644 --- a/libavcodec/shorten.c +++ b/libavcodec/shorten.c @@ -279,7 +279,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); |