summaryrefslogtreecommitdiff
path: root/libavformat/internal.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-09 16:13:32 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-11-19 17:47:04 +0100
commitc03e53aea7c73ea90c21eea712c50ba227f8d164 (patch)
tree06c6a61dd27019e2c619908f45fe70a8b7729387 /libavformat/internal.h
parent3188b606d7ed74080e9d8c84a35430421184d043 (diff)
avformat/mux: Store pointer to interleavement func in FFFormatContext
It avoids branches lateron and will allow to easily avoid the overhead of the linked list currently in use in case there is only one stream. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 1f301dd17a..290e114506 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -82,6 +82,12 @@ typedef struct FFFormatContext {
int nb_interleaved_streams;
/**
+ * The interleavement function in use. Always set for muxers.
+ */
+ int (*interleave_packet)(struct AVFormatContext *s, AVPacket *pkt,
+ int flush, int has_packet);
+
+ /**
* This buffer is only needed when packets were already buffered but
* not decoded, for example to get the codec parameters in MPEG
* streams.