diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-03-31 09:54:11 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-04-18 01:24:56 +0200 |
commit | e79309fde624805e339a7bc00bf1ce006172a0ad (patch) | |
tree | caa803a801100b2151d725da08ea599ce1e579d8 /libavformat/mux.c | |
parent | 148bcc0bc5ff9ce10dbfaf2f3054c267bcbdf91a (diff) |
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 <cus@passwd.hu>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/mux.c')
-rw-r--r-- | libavformat/mux.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/mux.c b/libavformat/mux.c index 3d63d59faf..a6253f5430 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -1144,7 +1144,6 @@ int ff_interleave_packet_per_dts(AVFormatContext *s, AVPacket *out, return 1; } else { - av_init_packet(out); return 0; } } |