projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1e7e4f
)
avformat/mpeg: zero initialize idx_pkt
author
James Almer
<jamrial@gmail.com>
Sat, 23 Sep 2017 22:37:21 +0000
(19:37 -0300)
committer
James 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
patch
|
blob
|
history
diff --git
a/libavformat/mpeg.c
b/libavformat/mpeg.c
index
68a848a
..
50fe7a1
100644
(file)
--- 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;