[FFmpeg-devel] [PATCH 06/12] lavf/hlsenc: replace round by lrint
Ganesh Ajjanagadde
gajjanagadde at gmail.com
Sat Dec 19 06:45:32 CET 2015
Mainly cosmetic here.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
libavformat/hlsenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index adcf7df..f2d7a52 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -430,7 +430,7 @@ static int hls_window(AVFormatContext *s, int last)
}
if (hls->flags & HLS_ROUND_DURATIONS)
- avio_printf(out, "#EXTINF:%d,\n", (int)round(en->duration));
+ avio_printf(out, "#EXTINF:%ld,\n", lrint(en->duration));
else
avio_printf(out, "#EXTINF:%f,\n", en->duration);
if (hls->flags & HLS_SINGLE_FILE)
--
2.6.4
More information about the ffmpeg-devel
mailing list