From cb259467d1ea0320b4150180f0d94b01c5b7e0ed Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Mon, 20 Nov 2017 10:50:30 +0800 Subject: [PATCH] avformat/mxf: use FFABS to instead of abs Signed-off-by: Steven Liu --- libavformat/mxf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mxf.c b/libavformat/mxf.c index 5994b09914..a909401f08 100644 --- a/libavformat/mxf.c +++ b/libavformat/mxf.c @@ -157,7 +157,7 @@ const MXFSamplesPerFrame *ff_mxf_get_samples_per_frame(AVFormatContext *s, int idx = av_find_nearest_q_idx(time_base, mxf_time_base); AVRational diff = av_sub_q(time_base, mxf_time_base[idx]); - diff.num = abs(diff.num); + diff.num = FFABS(diff.num); if (av_cmp_q(diff, (AVRational){1, 1000}) >= 0) return NULL;