diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-09-11 14:02:06 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-09-16 22:11:08 +0300 |
commit | 596e5d4783ca951258a7c580951fd161f1785ec1 (patch) | |
tree | 9d046fe97f3869e5fb66991a39734948fb374a60 /libavformat/avformat.h | |
parent | 0a9425d7cfdf0113c3d32096c9406823efe0cd0a (diff) | |
download | ffmpeg-596e5d4783ca951258a7c580951fd161f1785ec1.tar.gz |
lavf: Add a flag to enable/disable per-packet flushing
This is enabled by default and can be disabled with
"-fflags -flush_packets".
Inspired by a patch from Nicolas George <nicolas.george@normalesup.org>.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 1 |
1 files changed, 1 insertions, 0 deletions
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. |