]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/hlsenc.c
lavf/mpegtsenc: add automatic bitstream filtering
[ffmpeg] / libavformat / hlsenc.c
index adcf7dfcddc5d14a98529bd1c57ec209465e34d2..f2d7a52bb73e8e2cd4bc4cace9057c2ef44650af 100644 (file)
@@ -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)