From 596e5d4783ca951258a7c580951fd161f1785ec1 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Wed, 11 Sep 2013 14:02:06 +0200 Subject: lavf: Add a flag to enable/disable per-packet flushing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is enabled by default and can be disabled with "-fflags -flush_packets". Inspired by a patch from Nicolas George . Signed-off-by: Martin Storsjö --- libavformat/avformat.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/avformat.h') diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 12462c8291..ce7a2f89e1 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -894,6 +894,7 @@ typedef struct AVFormatContext { #define AVFMT_FLAG_NOBUFFER 0x0040 ///< Do not buffer frames when possible #define AVFMT_FLAG_CUSTOM_IO 0x0080 ///< The caller has supplied a custom AVIOContext, don't avio_close() it. #define AVFMT_FLAG_DISCARD_CORRUPT 0x0100 ///< Discard frames marked corrupted +#define AVFMT_FLAG_FLUSH_PACKETS 0x0200 ///< Flush the AVIOContext every packet. /** * decoding: size of data to probe; encoding: unused. -- cgit v1.2.3