aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/tee.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-12-01 10:04:02 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-03-28 04:17:20 +0100
commit33623307417c8d1d38768eae61024a5bb879bd86 (patch)
tree997f6d3b72ac2351ca58d9f6798ca7f0bff34d28 /libavformat/tee.c
parentc52ec0367de10f86ceb5a06d25c0f948a5897740 (diff)
downloadffmpeg-33623307417c8d1d38768eae61024a5bb879bd86.tar.gz
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 'libavformat/tee.c')
-rw-r--r--libavformat/tee.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/tee.c b/libavformat/tee.c
index 56669d9d8e..f2b11fcb35 100644
--- a/libavformat/tee.c
+++ b/libavformat/tee.c
@@ -564,7 +564,6 @@ static int tee_write_packet(AVFormatContext *avf, AVPacket *pkt)
if (s2 < 0)
continue;
- memset(&pkt2, 0, sizeof(AVPacket));
if ((ret = av_packet_ref(&pkt2, pkt)) < 0)
if (!ret_all) {
ret_all = ret;