avcodec/cinepakenc: Zero AVPictures, silence "may be used uninitialized" warnings
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 7 May 2014 15:53:04 +0000 (17:53 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 7 May 2014 15:54:03 +0000 (17:54 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/cinepakenc.c

index 9f990db..5b18dfd 100644 (file)
@@ -623,7 +623,7 @@ static int encode_mode(CinepakEncContext *s, int h, AVPicture *scratch_pict, AVP
     int needs_extra_bit, should_write_temp;
     unsigned char temp[64]; //32/2 = 16 V4 blocks at 4 B each -> 64 B
     mb_info *mb;
     int needs_extra_bit, should_write_temp;
     unsigned char temp[64]; //32/2 = 16 V4 blocks at 4 B each -> 64 B
     mb_info *mb;
-    AVPicture sub_scratch, sub_last;
+    AVPicture sub_scratch = {{0}}, sub_last = {{0}};
 
     //encode codebooks
 ////// MacOS vintage decoder compatibility dictates the presence of
 
     //encode codebooks
 ////// MacOS vintage decoder compatibility dictates the presence of