On Sun, Dec 11, 2011 at 03:20:56AM +0100, Luca Barbato wrote:
> It behaves similarly to image2 muxer
similar to the
> doc/muxers.texi | 32 ++++++
> libavformat/Makefile | 1 +
> libavformat/allformats.c | 1 +
> libavformat/segment.c | 257
> ++++++++++++++++++++++++++++++++++++++++++++++
> 4 files changed, 291 insertions(+), 0 deletions(-)
> create mode 100644 libavformat/segment.c
Version bump and changelog update are missing.
> --- /dev/null
> +++ b/libavformat/segment.c
> @@ -0,0 +1,257 @@
> + oc->streams = s->streams;
> + oc->nb_streams = s->nb_streams;
nit: align
> + if (ret) {
> + oc->streams = NULL;
> + oc->nb_streams = 0;
ditto
> + if ((seg->has_video && st->codec->codec_type == AVMEDIA_TYPE_VIDEO) &&
> + av_compare_ts(pkt->pts, st->time_base,
> + end_pts, AV_TIME_BASE_Q) >= 0 &&
> + pkt->flags & AV_PKT_FLAG_KEY) {
nit: this might look better without the broken line
> + oc->streams = NULL;
> + oc->nb_streams = 0;
nit: align
> +static const AVOption options[] = {
> + { "container_format", "container format used for the segments",
> OFFSET(format), FF_OPT_TYPE_STRING, {.str = NULL}, 0, 0, E },
> + { "segment_time", "segment lenght in seconds",
> OFFSET(time), FF_OPT_TYPE_FLOAT, {.dbl = 2}, 0, FLT_MAX, E },
lengTH
> + { "list_size", "maximum number of entry in the playlist",
> OFFSET(size), FF_OPT_TYPE_INT, {.dbl = 5}, 0, INT_MAX, E },
maximum number of playlist entries
Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel