* @url{http://tools.ietf.org/id/draft-pantos-http-live-streaming}
*/
-/* #define DEBUG */
-
#include <float.h>
#include <time.h>
int write_header_trailer; /**< Set by a private option. */
char *header_filename; ///< filename to write the output header to
- int reset_timestamps; ///< reset timestamps at the begin of each segment
+ int reset_timestamps; ///< reset timestamps at the beginning of each segment
int64_t initial_offset; ///< initial timestamps offset, expressed in microseconds
char *reference_stream_specifier; ///< reference stream specifier
int reference_stream_index;
static void close_null_ctxp(AVIOContext **pb)
{
av_freep(&(*pb)->buffer);
- av_freep(pb);
+ avio_context_free(pb);
}
static int select_reference_stream(AVFormatContext *s)
{ "individual_header_trailer", "write header/trailer to each segment", OFFSET(individual_header_trailer), AV_OPT_TYPE_BOOL, {.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_BOOL, {.i64 = 1}, 0, 1, E },
- { "reset_timestamps", "reset timestamps at the begin of each segment", OFFSET(reset_timestamps), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, E },
+ { "reset_timestamps", "reset timestamps at the beginning of each segment", OFFSET(reset_timestamps), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, E },
{ "initial_offset", "set initial timestamp offset", OFFSET(initial_offset), AV_OPT_TYPE_DURATION, {.i64 = 0}, -INT64_MAX, INT64_MAX, E },
{ "write_empty_segments", "allow writing empty 'filler' segments", OFFSET(write_empty), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, E },
{ NULL },