avformat/mxf: use FFABS to instead of abs

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
pull/272/head
Steven Liu 7 years ago
parent a30085f570
commit cb259467d1
  1. 2
      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;

Loading…
Cancel
Save