Re: [FFmpeg-devel] [PATCH 3/7] avformat/hlsenc: fix segmentation issues

2014-07-29 Thread Michael Niedermayer
On Tue, Jul 29, 2014 at 03:40:54PM +0200, Michael Niedermayer wrote: [...] > > @@ -289,7 +321,7 @@ static int hls_write_header(AVFormatContext *ctx) > > > > ret = avformat_write_header(hls->ctx, NULL); > > if (ret < 0) > > -return ret; > > +goto fail; > > > > retu

Re: [FFmpeg-devel] [PATCH 3/7] avformat/hlsenc: fix segmentation issues

2014-07-29 Thread Michael Niedermayer
On Fri, Jul 18, 2014 at 10:57:43AM +0200, Nicolas Martyanoff wrote: > - Select a reference stream (the first video stream, or the first audio > stream if there is no video stream) instead of using the PTS of any video > stream. > > - Control the segment length using the time since the last seg

[FFmpeg-devel] [PATCH 3/7] avformat/hlsenc: fix segmentation issues

2014-07-18 Thread Nicolas Martyanoff
- Select a reference stream (the first video stream, or the first audio stream if there is no video stream) instead of using the PTS of any video stream. - Control the segment length using the time since the last segment. --- libavformat/hlsenc.c | 165 +++-