avformat/mpeg: zero initialize idx_pkt
authorJames Almer <jamrial@gmail.com>
Sat, 23 Sep 2017 22:37:21 +0000 (19:37 -0300)
committerJames Almer <jamrial@gmail.com>
Sat, 23 Sep 2017 22:37:21 +0000 (19:37 -0300)
Prevents use of uninitialized stack.

Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/mpeg.c

index 68a848a..50fe7a1 100644 (file)
@@ -884,7 +884,7 @@ static int vobsub_read_packet(AVFormatContext *s, AVPacket *pkt)
     FFDemuxSubtitlesQueue *q;
     AVIOContext *pb = vobsub->sub_ctx->pb;
     int ret, psize, total_read = 0, i;
-    AVPacket idx_pkt;
+    AVPacket idx_pkt = { 0 };
 
     int64_t min_ts = INT64_MAX;
     int sid = 0;