summaryrefslogtreecommitdiff
path: root/fftools/ffmpeg_mux.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-10-13 13:14:34 +0200
committerAnton Khirnov <anton@khirnov.net>2022-10-18 14:19:11 +0200
commit2266e0483470cb73147c36bf5ce044b9eef1e841 (patch)
tree0abd51e0937415e7e9cc75f72d34db7d1ad598c8 /fftools/ffmpeg_mux.h
parent709b47f8a4a92f79ccbc05487ccaebefb7c78049 (diff)
downloadffmpeg-2266e0483470cb73147c36bf5ce044b9eef1e841.tar.gz
fftools/ffmpeg_mux: embed OutputStream in a MuxStream
This is now possible since OutputStream is a child of OutputFile and the code allocating it can access MuxStream. Avoids the overhead and extra complexity of allocating two objects instead of one. Similar to what was previously done for OutputFile/Muxer.
Diffstat (limited to 'fftools/ffmpeg_mux.h')
-rw-r--r--fftools/ffmpeg_mux.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/fftools/ffmpeg_mux.h b/fftools/ffmpeg_mux.h
index b73b6c628b..45daeb3591 100644
--- a/fftools/ffmpeg_mux.h
+++ b/fftools/ffmpeg_mux.h
@@ -35,6 +35,8 @@
#include "libavutil/thread.h"
typedef struct MuxStream {
+ OutputStream ost;
+
/* the packets are buffered here until the muxer is ready to be initialized */
AVFifo *muxing_queue;
@@ -57,9 +59,6 @@ typedef struct Muxer {
pthread_t thread;
ThreadQueue *tq;
- MuxStream *streams;
- int nb_streams;
-
AVDictionary *opts;
int thread_queue_size;