1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

avformat/mp3dec: 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:
Steven Liu 2017-11-20 10:49:42 +08:00
parent 218ce1f623
commit a30085f570

View File

@ -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;
}