From 5a9415533dd064d44605b3a3896a53377b7a5ca8 Mon Sep 17 00:00:00 2001 From: James Almer Date: Sat, 23 Sep 2017 20:13:58 -0300 Subject: ffplay: zero initialize copy avpacket Prevents potential use of uninitialized stack. Signed-off-by: James Almer --- ffplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ffplay.c') diff --git a/ffplay.c b/ffplay.c index 66e3673d21..45f2d78443 100644 --- a/ffplay.c +++ b/ffplay.c @@ -2977,7 +2977,7 @@ static int read_thread(void *arg) } if (is->queue_attachments_req) { if (is->video_st && is->video_st->disposition & AV_DISPOSITION_ATTACHED_PIC) { - AVPacket copy; + AVPacket copy = { 0 }; if ((ret = av_copy_packet(©, &is->video_st->attached_pic)) < 0) goto fail; packet_queue_put(&is->videoq, ©); -- cgit v1.2.3