Commit a30085f5 authored by Steven Liu's avatar Steven Liu

avformat/mp3dec: use FFABS to instead of abs

Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
parent 218ce1f6
...@@ -508,9 +508,9 @@ static int64_t mp3_sync(AVFormatContext *s, int64_t target_pos, int flags) ...@@ -508,9 +508,9 @@ static int64_t mp3_sync(AVFormatContext *s, int64_t target_pos, int flags)
return AVERROR(EINVAL); 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; candidate = pos;
score = abs(MIN_VALID/2-j); score = FFABS(MIN_VALID/2-j);
} }
pos += ret; pos += ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment