Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-12-01 12:04:02 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-03-28 06:17:20 +0300
commit33623307417c8d1d38768eae61024a5bb879bd86 (patch)
tree997f6d3b72ac2351ca58d9f6798ca7f0bff34d28 /fftools/ffplay.c
parentc52ec0367de10f86ceb5a06d25c0f948a5897740 (diff)
ffplay, avcodec, avformat: Don't initialize before av_packet_ref()
It already initializes the packet. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'fftools/ffplay.c')
-rw-r--r--fftools/ffplay.c2
1 files changed, 1 insertions, 1 deletions
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(&copy, &is->video_st->attached_pic)) < 0)
goto fail;
packet_queue_put(&is->videoq, &copy);