diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-02-05 03:17:16 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-02-05 03:19:22 +0100 |
commit | 3adb5f8d8b4006f4188c9c4d6f0925988fadc2f4 (patch) | |
tree | 5fcd6d5b8350b26839ccea85b7c0db5178f8dcc2 /libavformat/avformat.h | |
parent | 6a4cc50980783013b19bfb2edaaca14cc38d5c92 (diff) | |
parent | d9ae1031f5edbd25c8526b4cb51aba66d3bee931 (diff) | |
download | ffmpeg-3adb5f8d8b4006f4188c9c4d6f0925988fadc2f4.tar.gz |
Merge commit 'd9ae1031f5edbd25c8526b4cb51aba66d3bee931'
* commit 'd9ae1031f5edbd25c8526b4cb51aba66d3bee931':
lavf: improve handling of sparse streams when muxing
Conflicts:
doc/APIchanges
libavformat/avformat.h
libavformat/mux.c
libavformat/options_table.h
libavformat/version.h
See: 37ed5df5c5e06a55724fb9eb215da1594b648282
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index fe3757a309..4d3cc1492b 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -1183,6 +1183,24 @@ typedef struct AVFormatContext { #define FF_FDEBUG_TS 0x0001 /** + * Maximum buffering duration for interleaving. + * + * To ensure all the streams are interleaved correctly, + * av_interleaved_write_frame() will wait until it has at least one packet + * for each stream before actually writing any packets to the output file. + * When some streams are "sparse" (i.e. there are large gaps between + * successive packets), this can result in excessive buffering. + * + * This field specifies the maximum difference between the timestamps of the + * first and the last packet in the muxing queue, above which libavformat + * will output a packet regardless of whether it has queued a packet for all + * the streams. + * + * Muxing only, set by the caller before avformat_write_header(). + */ + int64_t max_interleave_delta; + + /** * Transport stream id. * This will be moved into demuxer private options. Thus no API/ABI compatibility */ |