Commit f08ed90d authored by Michael Niedermayer's avatar Michael Niedermayer

Assert that the context doesnt overflow in ffv1.

Originally committed as revision 25475 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent e2b2f845
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment