142 int target_duration = 0;
152 target_duration = ceil(en->
duration);
157 avio_printf(hls->
pb,
"#EXT-X-TARGETDURATION:%d\n", target_duration);
158 avio_printf(hls->
pb,
"#EXT-X-MEDIA-SEQUENCE:%"PRId64
"\n", sequence);
206 const char *pattern =
"%d.ts";
207 int basename_size = strlen(s->
filename) + strlen(pattern) + 1;
219 "More than a single video stream present, "
220 "expect issues decoding it.\n");
271 int ret, can_split = 1;
284 is_ref_pkt = can_split = 0;
335 #define OFFSET(x) offsetof(HLSContext, x)
336 #define E AV_OPT_FLAG_ENCODING_PARAM
340 {
"hls_list_size",
"set maximum number of playlist entries",
OFFSET(max_nb_segments),
AV_OPT_TYPE_INT, {.i64 = 5}, 0, INT_MAX,
E},
357 .extensions =
"m3u8",
365 .priv_class = &hls_class,