libavformat/segment: change segment_list_size behavior to match hls_list_size behavior.
authorSimon Thelen <ffmpeg-dev@c-14.de>
Wed, 9 Jul 2014 19:40:43 +0000 (21:40 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 17 Jul 2014 00:35:56 +0000 (02:35 +0200)
commitfa6716c66d31385a0f306c2a3f46f44e0d928ff9
tree78bea0011327e0bf09a15db671670b6f2d6ccfcc
parent37a0ac1d8227a6612024e6d177c76b392ce59840
libavformat/segment: change segment_list_size behavior to match hls_list_size behavior.

Make the segment muxer keep segment_list_size segments instead of
segment_list_size + 1 segments. This patch also changes the
documentation for segment_list_size to reduce possible confusion over
how many segments are kept.

this allows the segment list to
be limited to containing only one segment which used to be impossible
because a segment_list_size of 0 kept all the segments and a
segment_list_size of 1 kept 2 segments.

Signed-off-by: Simon Thelen <ffmpeg-dev@c-14.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
doc/muxers.texi
libavformat/segment.c