aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2014-11-03 22:38:09 +0200
committerMartin Storsjö <martin@martin.st>2014-11-26 09:58:13 +0200
commit234fb81e3145e9c9aec4ec16266676fab7dc21fa (patch)
treeb55dffc71fb5aee1a86f8d7ce1274dc979500010
parentee37620b6ae4783cda637408422044b2d14a688c (diff)
downloadffmpeg-234fb81e3145e9c9aec4ec16266676fab7dc21fa.tar.gz
movenc: Expose the fragment index as an avoption
This allows setting the right fragment number if doing random-access writing of fragments, and also allows reading the current sequence number. Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r--libavformat/movenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 80531d09f7..f6109e6b63 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -71,6 +71,7 @@ static const AVOption options[] = {
{ "ism_lookahead", "Number of lookahead entries for ISM files", offsetof(MOVMuxContext, ism_lookahead), AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM},
{ "brand", "Override major brand", offsetof(MOVMuxContext, major_brand), AV_OPT_TYPE_STRING, {.str = NULL}, .flags = AV_OPT_FLAG_ENCODING_PARAM },
{ "use_editlist", "use edit list", offsetof(MOVMuxContext, use_editlist), AV_OPT_TYPE_INT, {.i64 = -1}, -1, 1, AV_OPT_FLAG_ENCODING_PARAM},
+ { "fragment_index", "Fragment number of the next fragment", offsetof(MOVMuxContext, fragments), AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM},
{ NULL },
};