From f08ed90d9407bd7601130ac30f20651acf250188 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 14 Oct 2010 22:03:38 +0000 Subject: Assert that the context doesnt overflow in ffv1. Originally committed as revision 25475 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ffv1.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/ffv1.c') 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); -- cgit v1.2.1