diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c index 87a2050535..669139552c 100644 --- a/libavcodec/ffv1.c +++ b/libavcodec/ffv1.c @@ -1024,6 +1024,7 @@ static av_always_inline void decode_line(FFV1Context *s, int w, int_fast16_t *sa }else sign=0; + av_assert2(context < p->context_count); if(s->ac){ diff= get_symbol_inline(c, p->state[context], 1);