From 0b23452c01c5f8145de111f09c0e9a7d5bd82068 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 3 Sep 2012 01:24:15 +0200 Subject: ffv1: fix 2 uninitialized variable warnings Signed-off-by: Michael Niedermayer --- libavcodec/ffv1.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libavcodec/ffv1.c') diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c index 6650a235a2..4f9068084a 100644 --- a/libavcodec/ffv1.c +++ b/libavcodec/ffv1.c @@ -597,7 +597,7 @@ static void encode_rgb_frame(FFV1Context *s, uint8_t *src[3], int w, int h, int sample[p][i]= s->sample_buffer + p*ring_size*(w+6) + ((h+i-y)%ring_size)*(w+6) + 3; for(x=0; xslice_context[0]->c; memset(state, 128, sizeof(state)); @@ -2002,6 +2002,7 @@ static int read_header(FFV1Context *f){ } if(f->version <= 2){ + av_assert0(context_count>=0); if(p->context_count < context_count){ av_freep(&p->state); av_freep(&p->vlc_state); -- cgit v1.2.3