diff options
author | James Almer <jamrial@gmail.com> | 2017-09-23 20:13:58 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-09-23 20:13:58 -0300 |
commit | 5a9415533dd064d44605b3a3896a53377b7a5ca8 (patch) | |
tree | a00a2e4887598ae63c73e443da5df3b122b4beb4 /ffplay.c | |
parent | 86be73c7c1a5c789ad971d4ec620edc839d46820 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, ©); |