1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/libxvid: Fix use of uninitialized AVPacket fields

Fixes CID1361964

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2016-05-31 00:05:53 +02:00
parent 2c7fd0e36b
commit 0b9b3163f2

View File

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