[FFmpeg-devel] [PATCH 4/7] ffv1: fix uninitialized use context_count when version < 1.

Clément Bœsch ubitux at gmail.com
Thu Sep 1 02:30:21 CEST 2011


---
 libavcodec/ffv1.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index 8d9dc72..d2192ed 100644
--- a/libavcodec/ffv1.c
+++ b/libavcodec/ffv1.c
@@ -1611,6 +1611,7 @@ static int read_header(FFV1Context *f){
                 return -1;
         }
     }else{
+        context_count = 0;
         f->slice_count= get_symbol(c, state, 0);
         if(f->slice_count > (unsigned)MAX_SLICES)
             return -1;
-- 
1.7.6.1



More information about the ffmpeg-devel mailing list