[FFmpeg-cvslog] avformat/hlsenc: use FFABS to instead of abs

Steven Liu git at videolan.org
Mon Nov 20 04:53:29 EET 2017


ffmpeg | branch: master | Steven Liu <lq at chinaffmpeg.org> | Mon Nov 20 10:51:57 2017 +0800| [25aff9d8201a7586df2a77fb6914adfc49758b61] | committer: Steven Liu

avformat/hlsenc: use FFABS to instead of abs

Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: Steven Liu <lq at chinaffmpeg.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=25aff9d8201a7586df2a77fb6914adfc49758b61
---

 libavformat/hlsenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 8cd5ed5937..3c47ced30d 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -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 ? '+' : '-',



More information about the ffmpeg-cvslog mailing list