Commit cb259467 authored by Steven Liu's avatar Steven Liu

avformat/mxf: use FFABS to instead of abs

Signed-off-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
parent a30085f5
......@@ -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;
......
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