diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-10-13 12:50:19 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-10-18 13:57:43 +0200 |
commit | 24098c6c8d124cd471ec0badb596e42ba6711b82 (patch) | |
tree | 82f3e47b27ecae905b489be45f462ad22d9b67f0 /fftools/ffmpeg_mux.c | |
parent | 18d6c07267994398f99b2241f577f8e7118af099 (diff) | |
download | ffmpeg-24098c6c8d124cd471ec0badb596e42ba6711b82.tar.gz |
fftools/ffmpeg_mux: move Muxer and MuxStream to a new header
This will allow ffmpeg_mux_init.c to work with these structs.
Diffstat (limited to 'fftools/ffmpeg_mux.c')
-rw-r--r-- | fftools/ffmpeg_mux.c | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/fftools/ffmpeg_mux.c b/fftools/ffmpeg_mux.c index 7bc25c6175..09213472a6 100644 --- a/fftools/ffmpeg_mux.c +++ b/fftools/ffmpeg_mux.c @@ -21,6 +21,7 @@ #include <string.h> #include "ffmpeg.h" +#include "ffmpeg_mux.h" #include "objpool.h" #include "sync_queue.h" #include "thread_queue.h" @@ -37,41 +38,6 @@ #include "libavformat/avformat.h" #include "libavformat/avio.h" -typedef struct MuxStream { - /* the packets are buffered here until the muxer is ready to be initialized */ - AVFifo *muxing_queue; - - /* - * The size of the AVPackets' buffers in queue. - * Updated when a packet is either pushed or pulled from the queue. - */ - size_t muxing_queue_data_size; - - /* dts of the last packet sent to the muxer, in the stream timebase - * used for making up missing dts values */ - int64_t last_mux_dts; -} MuxStream; - -struct Muxer { - AVFormatContext *fc; - - pthread_t thread; - ThreadQueue *tq; - - MuxStream *streams; - - AVDictionary *opts; - - int thread_queue_size; - - /* filesize limit expressed in bytes */ - int64_t limit_filesize; - atomic_int_least64_t last_filesize; - int header_written; - - AVPacket *sq_pkt; -}; - static int want_sdp = 1; static int64_t filesize(AVIOContext *pb) |