summaryrefslogtreecommitdiff
path: root/libavformat/internal.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-03-31 09:54:11 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-04-18 01:24:56 +0200
commite79309fde624805e339a7bc00bf1ce006172a0ad (patch)
treecaa803a801100b2151d725da08ea599ce1e579d8 /libavformat/internal.h
parent148bcc0bc5ff9ce10dbfaf2f3054c267bcbdf91a (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/internal.h')
-rw-r--r--libavformat/internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 7e4284b217..329b2e972d 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -503,8 +503,8 @@ int ff_read_packet(AVFormatContext *s, AVPacket *pkt);
* @param pkt the input packet; will be blank on return if not NULL
* @param flush 1 if no further packets are available as input and all
* remaining packets should be output
- * @return 1 if a packet was output, 0 if no packet could be output,
- * < 0 if an error occurred
+ * @return 1 if a packet was output, 0 if no packet could be output
+ * (in which case out may be uninitialized), < 0 if an error occurred
*/
int ff_interleave_packet_per_dts(AVFormatContext *s, AVPacket *out,
AVPacket *pkt, int flush);