[FFmpeg-devel] [PATCH 01/11] avformat/hlsenc: use FFABS to instead of abs

Steven Liu lq at chinaffmpeg.org
Wed Nov 15 09:43:30 EET 2017


Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
---
 libavformat/hlsenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index e0cef8b879..5af907b6f0 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -1113,7 +1113,7 @@ static int hls_window(AVFormatContext *s, int last)
                 tm = gmtime_r(&tt, &tmpbuf);
                 tm->tm_isdst = dst;
                 wrongsecs = mktime(tm);
-                tz_min = (abs(wrongsecs - tt) + 30) / 60;
+                tz_min = (FFABS(wrongsecs - tt) + 30) / 60;
                 snprintf(buf1, sizeof(buf1),
                          "%c%02d%02d",
                          wrongsecs <= tt ? '+' : '-',
-- 
2.11.0 (Apple Git-81)





More information about the ffmpeg-devel mailing list