Re: [FFmpeg-devel] [PATCH 1/7] avformat/hlsenc: correctly compute target duration

2014-07-22 Thread Stefano Sabatini
On date Friday 2014-07-18 10:57:41 +0200, Nicolas Martyanoff encoded: > With HLS, the duration of all segments must be lower or equal to the target > duration. Therefore floor(duration + 0.5) yields incorrect results. > > For example, for duration = 1.35, floor(duration + 0.5) yields 1.0, but the

Re: [FFmpeg-devel] [PATCH 1/7] avformat/hlsenc: correctly compute target duration

2014-07-18 Thread Michael Niedermayer
On Fri, Jul 18, 2014 at 10:57:41AM +0200, Nicolas Martyanoff wrote: > With HLS, the duration of all segments must be lower or equal to the target > duration. Therefore floor(duration + 0.5) yields incorrect results. > > For example, for duration = 1.35, floor(duration + 0.5) yields 1.0, but the >

[FFmpeg-devel] [PATCH 1/7] avformat/hlsenc: correctly compute target duration

2014-07-18 Thread Nicolas Martyanoff
With HLS, the duration of all segments must be lower or equal to the target duration. Therefore floor(duration + 0.5) yields incorrect results. For example, for duration = 1.35, floor(duration + 0.5) yields 1.0, but the correct result is 2.0. --- libavformat/hlsenc.c | 2 +- 1 file changed, 1 ins