aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/segment.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-12-09 18:21:00 +0100
committerStefano Sabatini <stefasab@gmail.com>2012-12-13 21:38:43 +0100
commitddf6131a0ab9bf8aa4c5b8702509506d94a6f7b7 (patch)
tree58ed4d9d4a554df3b730e44e7ab514bcd256e301 /libavformat/segment.c
parentd93d03a4921e039ac697942e9f392d1607c7e269 (diff)
downloadffmpeg-ddf6131a0ab9bf8aa4c5b8702509506d94a6f7b7.tar.gz
lavf/segment: add segment_start_number option
Consistent with the image2 muxer.
Diffstat (limited to 'libavformat/segment.c')
-rw-r--r--libavformat/segment.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c
index dddf0ef229..a1aa54059d 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -577,6 +577,7 @@ static const AVOption options[] = {
{ "segment_time_delta","set approximation value used for the segment times", OFFSET(time_delta_str), AV_OPT_TYPE_STRING, {.str = "0"}, 0, 0, E },
{ "segment_times", "set segment split time points", OFFSET(times_str),AV_OPT_TYPE_STRING,{.str = NULL}, 0, 0, E },
{ "segment_wrap", "set number after which the index wraps", OFFSET(segment_idx_wrap), AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, E },
+ { "segment_start_number", "set the sequence number of the first segment", OFFSET(segment_idx), AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, E },
{ "individual_header_trailer", "write header/trailer to each segment", OFFSET(individual_header_trailer), AV_OPT_TYPE_INT, {.i64 = 1}, 0, 1, E },
{ "write_header_trailer", "write a header to the first segment and a trailer to the last one", OFFSET(write_header_trailer), AV_OPT_TYPE_INT, {.i64 = 1}, 0, 1, E },