130 int target_duration = 0;
137 for (en = hls->
list; en; en = en->
next) {
144 avio_printf(hls->
pb,
"#EXT-X-TARGETDURATION:%d\n", target_duration);
148 for (en = hls->
list; en; en = en->
next) {
191 const char *pattern =
"%d.ts";
192 int basename_size = strlen(s->
filename) + strlen(pattern) + 1;
205 "More than a single video stream present, "
206 "expect issues decoding it.\n");
256 int ret, is_ref_pkt = 0;
318 #define OFFSET(x) offsetof(HLSContext, x)
319 #define E AV_OPT_FLAG_ENCODING_PARAM
321 {
"start_number",
"set first number in the sequence",
OFFSET(sequence),
AV_OPT_TYPE_INT64, {.i64 = 0}, 0, INT64_MAX,
E},
339 .extensions =
"m3u8",
347 .priv_class = &hls_class,