]> git.sesse.net Git - ffmpeg/commitdiff
avformat/hlsenc: use FFABS to instead of abs
authorSteven Liu <lq@chinaffmpeg.org>
Mon, 20 Nov 2017 02:51:57 +0000 (10:51 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Mon, 20 Nov 2017 02:51:57 +0000 (10:51 +0800)
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
libavformat/hlsenc.c

index 8cd5ed5937cfa4083d23572388f55bde1cc2483b..3c47ced30d96ce4914045f8bc4cdecf8977603a8 100644 (file)
@@ -1264,7 +1264,7 @@ static int hls_window(AVFormatContext *s, int last, VariantStream *vs)
                 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 ? '+' : '-',