summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-09-23 20:13:58 -0300
committerJames Almer <jamrial@gmail.com>2017-09-23 20:13:58 -0300
commit5a9415533dd064d44605b3a3896a53377b7a5ca8 (patch)
treea00a2e4887598ae63c73e443da5df3b122b4beb4 /ffplay.c
parent86be73c7c1a5c789ad971d4ec620edc839d46820 (diff)
ffplay: zero initialize copy avpacket
Prevents potential use of uninitialized stack. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c2
1 files changed, 1 insertions, 1 deletions
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(&copy, &is->video_st->attached_pic)) < 0)
goto fail;
packet_queue_put(&is->videoq, &copy);