diff options
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 */ |