When using the wrap option the EXT-X-MEDIA-SEQUENCE header of the playlist file was reset instead of being incremented.
It is now incremented by one for every media URI removed from the playlist file as the standard states.
Signed-off-by: Willy Aubry <waubry@viotech.net>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/60/head
Willy Aubry11 years agocommitted byMichael Niedermayer
{"segment_wrap","set number after which the index wraps",OFFSET(segment_idx_wrap),AV_OPT_TYPE_INT,{.i64=0},0,INT_MAX,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},
{"segment_start_number","set the sequence number of the first segment",OFFSET(segment_idx),AV_OPT_TYPE_INT,{.i64=0},0,INT_MAX,E},
{"segment_wrap_number","set the number of wrap before the first segment",OFFSET(segment_idx_wrap_nb),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},
{"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},
{"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},