Commit 5a941553 authored by James Almer's avatar James Almer

ffplay: zero initialize copy avpacket

Prevents potential use of uninitialized stack.
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 86be73c7
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment