avformat/mxf: use FFABS to instead of abs
authorSteven Liu <lq@chinaffmpeg.org>
Mon, 20 Nov 2017 02:50:30 +0000 (10:50 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Mon, 20 Nov 2017 02:50:30 +0000 (10:50 +0800)
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
libavformat/mxf.c

index 5994b09..a909401 100644 (file)
@@ -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;