summaryrefslogtreecommitdiff
path: root/libavformat/options_table.h
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-09-11 14:02:06 +0200
committerMartin Storsjö <martin@martin.st>2013-09-16 22:11:08 +0300
commit596e5d4783ca951258a7c580951fd161f1785ec1 (patch)
tree9d046fe97f3869e5fb66991a39734948fb374a60 /libavformat/options_table.h
parent0a9425d7cfdf0113c3d32096c9406823efe0cd0a (diff)
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/options_table.h')
-rw-r--r--libavformat/options_table.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/options_table.h b/libavformat/options_table.h
index 273c589d12..54bf25fc27 100644
--- a/libavformat/options_table.h
+++ b/libavformat/options_table.h
@@ -33,7 +33,8 @@
static const AVOption avformat_options[] = {
{"probesize", "set probing size", OFFSET(probesize), AV_OPT_TYPE_INT, {.i64 = 5000000 }, 32, INT_MAX, D},
{"packetsize", "set packet size", OFFSET(packet_size), AV_OPT_TYPE_INT, {.i64 = DEFAULT }, 0, INT_MAX, E},
-{"fflags", NULL, OFFSET(flags), AV_OPT_TYPE_FLAGS, {.i64 = DEFAULT }, INT_MIN, INT_MAX, D|E, "fflags"},
+{"fflags", NULL, OFFSET(flags), AV_OPT_TYPE_FLAGS, {.i64 = AVFMT_FLAG_FLUSH_PACKETS }, INT_MIN, INT_MAX, D|E, "fflags"},
+{"flush_packets", "reduce the latency by flushing out packets immediately", 0, AV_OPT_TYPE_CONST, {.i64 = AVFMT_FLAG_FLUSH_PACKETS }, INT_MIN, INT_MAX, D, "fflags"},
{"ignidx", "ignore index", 0, AV_OPT_TYPE_CONST, {.i64 = AVFMT_FLAG_IGNIDX }, INT_MIN, INT_MAX, D, "fflags"},
{"genpts", "generate pts", 0, AV_OPT_TYPE_CONST, {.i64 = AVFMT_FLAG_GENPTS }, INT_MIN, INT_MAX, D, "fflags"},
{"nofillin", "do not fill in missing values that can be exactly calculated", 0, AV_OPT_TYPE_CONST, {.i64 = AVFMT_FLAG_NOFILLIN }, INT_MIN, INT_MAX, D, "fflags"},