diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-12-01 12:04:02 +0300 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-03-28 06:17:20 +0300 |
commit | 33623307417c8d1d38768eae61024a5bb879bd86 (patch) | |
tree | 997f6d3b72ac2351ca58d9f6798ca7f0bff34d28 /libavformat/fifo.c | |
parent | c52ec0367de10f86ceb5a06d25c0f948a5897740 (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 'libavformat/fifo.c')
-rw-r--r-- | libavformat/fifo.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/fifo.c b/libavformat/fifo.c index 7b37fff6da..d11dc6626c 100644 --- a/libavformat/fifo.c +++ b/libavformat/fifo.c @@ -536,7 +536,6 @@ static int fifo_write_packet(AVFormatContext *avf, AVPacket *pkt) int ret; if (pkt) { - av_init_packet(&msg.pkt); ret = av_packet_ref(&msg.pkt,pkt); if (ret < 0) return ret; |