avcodec/libxvid: Fix use of uninitialized AVPacket fields

Fixes CID1361964

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/216/head
Michael Niedermayer 9 years ago
parent 2c7fd0e36b
commit 0b9b3163f2
  1. 2
      libavcodec/libxvid.c

@ -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);

Loading…
Cancel
Save