avcodec/libxvid: Fix use of uninitialized AVPacket fields
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 30 May 2016 22:05:53 +0000 (00:05 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 30 May 2016 22:24:22 +0000 (00:24 +0200)
Fixes CID1361964

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/libxvid.c

index b362921..32d5e48 100644 (file)
@@ -713,7 +713,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
     /* Encode a dummy frame to get the extradata immediately */
     if (x->quicktime_format) {
         AVFrame *picture;
-        AVPacket packet;
+        AVPacket packet = {0};
         int size, got_packet, ret;
 
         av_init_packet(&packet);