mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-17 12:30:11 +01:00
ffplay: zero initialize copy avpacket
Prevents potential use of uninitialized stack. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
2
ffplay.c
2
ffplay.c
@@ -2977,7 +2977,7 @@ static int read_thread(void *arg)
|
|||||||
}
|
}
|
||||||
if (is->queue_attachments_req) {
|
if (is->queue_attachments_req) {
|
||||||
if (is->video_st && is->video_st->disposition & AV_DISPOSITION_ATTACHED_PIC) {
|
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)
|
if ((ret = av_copy_packet(©, &is->video_st->attached_pic)) < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
packet_queue_put(&is->videoq, ©);
|
packet_queue_put(&is->videoq, ©);
|
||||||
|
|||||||
Reference in New Issue
Block a user