summaryrefslogtreecommitdiff
path: root/libavcodec/ffv1.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-10-14 22:03:38 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-10-14 22:03:38 +0000
commitf08ed90d9407bd7601130ac30f20651acf250188 (patch)
treed06ce0e9e835947cdd27e4b91d9e48d80ac5e8a9 /libavcodec/ffv1.c
parente2b2f8454c7a945002b913cb7ed4644590ddeec9 (diff)
downloadffmpeg-f08ed90d9407bd7601130ac30f20651acf250188.tar.gz
Assert that the context doesnt overflow in ffv1.
Originally committed as revision 25475 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ffv1.c')
-rw-r--r--libavcodec/ffv1.c1
1 files changed, 1 insertions, 0 deletions
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);