mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
avformat/hlsenc: use FFABS to instead of abs
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
parent
462a14b1e9
commit
25aff9d820
@ -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 ? '+' : '-',
|
||||
|
Loading…
Reference in New Issue
Block a user