aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-09-23 19:37:21 -0300
committerJames Almer <jamrial@gmail.com>2017-09-23 19:37:21 -0300
commit86be73c7c1a5c789ad971d4ec620edc839d46820 (patch)
treec3e728ca262f20544157160dd90e60da0d60b135
parentd1e7e4fbe2b07f191311cb56e82ef4c18fd0fda4 (diff)
downloadffmpeg-86be73c7c1a5c789ad971d4ec620edc839d46820.tar.gz
avformat/mpeg: zero initialize idx_pkt
Prevents use of uninitialized stack. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavformat/mpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 68a848a6f6..50fe7a1a76 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -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;