aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mp3dec.c
diff options
context:
space:
mode:
authorSteven Liu <lq@chinaffmpeg.org>2017-11-20 10:49:42 +0800
committerSteven Liu <lq@chinaffmpeg.org>2017-11-20 10:49:42 +0800
commita30085f5708f16fcf2d133a2120ddf50d8f59c44 (patch)
treed44f89db6ac0863938110dddf71d8052271a0546 /libavformat/mp3dec.c
parent218ce1f6237b39090015809468f8e933bb09d9b8 (diff)
downloadffmpeg-a30085f5708f16fcf2d133a2120ddf50d8f59c44.tar.gz
avformat/mp3dec: use FFABS to instead of abs
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavformat/mp3dec.c')
-rw-r--r--libavformat/mp3dec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c
index a5c4f2ea12..a76fe32e59 100644
--- a/libavformat/mp3dec.c
+++ b/libavformat/mp3dec.c
@@ -508,9 +508,9 @@ static int64_t mp3_sync(AVFormatContext *s, int64_t target_pos, int flags)
return AVERROR(EINVAL);
}
}
- if ((target_pos - pos)*dir <= 0 && abs(MIN_VALID/2-j) < score) {
+ if ((target_pos - pos)*dir <= 0 && FFABS(MIN_VALID/2-j) < score) {
candidate = pos;
- score = abs(MIN_VALID/2-j);
+ score = FFABS(MIN_VALID/2-j);
}
pos += ret;
}