From e79309fde624805e339a7bc00bf1ce006172a0ad Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 31 Mar 2020 09:54:11 +0200 Subject: libavformat/mux, mxfenc: Don't initialize unnecessarily When no packet could be output, the interleavement functions nevertheless initialized the packet destined for output (with the exception of the data and size fields, making the initialization pointless), although it will not be used at all. So remove the initializations. Reviewed-by: Marton Balint Signed-off-by: Andreas Rheinhardt --- libavformat/mxfenc.c | 1 - 1 file changed, 1 deletion(-) (limited to 'libavformat/mxfenc.c') diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index bfce531f54..23147e9b84 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -3070,7 +3070,6 @@ static int mxf_interleave_get_packet(AVFormatContext *s, AVPacket *out, AVPacket return 1; } else { out: - av_init_packet(out); return 0; } } -- cgit v1.2.3