summaryrefslogtreecommitdiff
path: root/libavcodec/rv30.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/rv30.c')
-rw-r--r--libavcodec/rv30.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/rv30.c b/libavcodec/rv30.c
index 4828e982b7..1bb223cd7b 100644
--- a/libavcodec/rv30.c
+++ b/libavcodec/rv30.c
@@ -103,7 +103,7 @@ static int rv30_decode_mb_info(RV34DecContext *r)
GetBitContext *gb = &s->gb;
int code = svq3_get_ue_golomb(gb);
- if(code > 11){
+ if (code < 0 || code > 11) {
av_log(s->avctx, AV_LOG_ERROR, "Incorrect MB type code\n");
return -1;
}