mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
lavf/hlsenc: replace round by lrint
Mainly cosmetic here. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
parent
641cb77f50
commit
18bc3dc768
@ -430,7 +430,7 @@ static int hls_window(AVFormatContext *s, int last)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (hls->flags & HLS_ROUND_DURATIONS)
|
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
|
else
|
||||||
avio_printf(out, "#EXTINF:%f,\n", en->duration);
|
avio_printf(out, "#EXTINF:%f,\n", en->duration);
|
||||||
if (hls->flags & HLS_SINGLE_FILE)
|
if (hls->flags & HLS_SINGLE_FILE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user