From 52d13d54e139d23a841e7d7a5cd09dc8904b150a Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sat, 9 Oct 2021 16:27:03 +0200 Subject: avformat/mux: Avoid overhead of packet list in case of single streams Reviewed-by: Paul B Mahol Reviewed-by: James Almer Signed-off-by: Andreas Rheinhardt --- libavformat/internal.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libavformat/internal.h') diff --git a/libavformat/internal.h b/libavformat/internal.h index 290e114506..20e93d9267 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -759,6 +759,13 @@ int ff_add_attached_pic(AVFormatContext *s, AVStream *st, AVIOContext *pb, int ff_interleave_packet_per_dts(AVFormatContext *s, AVPacket *pkt, int flush, int has_packet); +/** + * Interleave packets directly in the order in which they arrive + * without any sort of buffering. + */ +int ff_interleave_packet_passthrough(AVFormatContext *s, AVPacket *pkt, + int flush, int has_packet); + void ff_free_stream(AVFormatContext *s, AVStream *st); unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum AVCodecID id); -- cgit v1.2.3