[FFmpeg-cvslog] avcodec/cinepakenc: Zero AVPictures, silence "may be used uninitialized" warnings
Michael Niedermayer
git at videolan.org
Wed May 7 18:20:18 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed May 7 17:53:04 2014 +0200| [a6e9448dc6971ba4e196656de3e6cd7bcac2cb8f] | committer: Michael Niedermayer
avcodec/cinepakenc: Zero AVPictures, silence "may be used uninitialized" warnings
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a6e9448dc6971ba4e196656de3e6cd7bcac2cb8f
---
libavcodec/cinepakenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/cinepakenc.c b/libavcodec/cinepakenc.c
index 9f990db..5b18dfd 100644
--- a/libavcodec/cinepakenc.c
+++ b/libavcodec/cinepakenc.c
@@ -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;
- AVPicture sub_scratch, sub_last;
+ AVPicture sub_scratch = {{0}}, sub_last = {{0}};
//encode codebooks
////// MacOS vintage decoder compatibility dictates the presence of
More information about the ffmpeg-cvslog
mailing list