diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index d538c74c3e..d2923b9cf2 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@ -1049,8 +1049,8 @@ static void vc1_mc_4mv_chroma4(VC1Context *v) mquant = v->altpq; \ if ((edges&8) && s->mb_y == (s->mb_height - 1)) \ mquant = v->altpq; \ - if (!mquant) { \ - av_log(v->s.avctx,AV_LOG_ERROR, "zero mquant\n"); \ + if (!mquant || mquant > 31) { \ + av_log(v->s.avctx, AV_LOG_ERROR, "invalid mquant %d\n", mquant); \ mquant = 1; \ } \ }