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

Michael Niedermayer michaelni at gmx.at
Fri Jul 18 15:28:00 CEST 2014


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
> correct result is 2.0.
> ---
>  libavformat/hlsenc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

this has already been applied by Anssi


-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

There will always be a question for which you do not know the correct answer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140718/5aa67120/attachment.asc>


More information about the ffmpeg-devel mailing list