From 33623307417c8d1d38768eae61024a5bb879bd86 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 1 Dec 2019 10:04:02 +0100 Subject: ffplay, avcodec, avformat: Don't initialize before av_packet_ref() It already initializes the packet. Reviewed-by: Anton Khirnov Signed-off-by: Andreas Rheinhardt --- fftools/ffplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fftools/ffplay.c') diff --git a/fftools/ffplay.c b/fftools/ffplay.c index f6511e4afd..2ed4b22d3e 100644 --- a/fftools/ffplay.c +++ b/fftools/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 = { 0 }; + AVPacket copy; if ((ret = av_packet_ref(©, &is->video_st->attached_pic)) < 0) goto fail; packet_queue_put(&is->videoq, ©); -- cgit v1.2.3