Assert that the context doesnt overflow in ffv1.

Originally committed as revision 25475 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2010-10-14 22:03:38 +00:00
parent e2b2f8454c
commit f08ed90d94
1 changed files with 1 additions and 0 deletions

View File

@ -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);