You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/mpeg: zero initialize idx_pkt
Prevents use of uninitialized stack. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -884,7 +884,7 @@ static int vobsub_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
FFDemuxSubtitlesQueue *q;
|
FFDemuxSubtitlesQueue *q;
|
||||||
AVIOContext *pb = vobsub->sub_ctx->pb;
|
AVIOContext *pb = vobsub->sub_ctx->pb;
|
||||||
int ret, psize, total_read = 0, i;
|
int ret, psize, total_read = 0, i;
|
||||||
AVPacket idx_pkt;
|
AVPacket idx_pkt = { 0 };
|
||||||
|
|
||||||
int64_t min_ts = INT64_MAX;
|
int64_t min_ts = INT64_MAX;
|
||||||
int sid = 0;
|
int sid = 0;
|
||||||
|
Reference in New Issue
Block a user