diff options
author | Steven Liu <lq@chinaffmpeg.org> | 2017-11-20 10:50:30 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2017-11-20 10:50:30 +0800 |
commit | cb259467d1ea0320b4150180f0d94b01c5b7e0ed (patch) | |
tree | 9621a4d82f70f318cfe182a547be6046d1aef85d /libavformat | |
parent | a30085f5708f16fcf2d133a2120ddf50d8f59c44 (diff) | |
download | ffmpeg-cb259467d1ea0320b4150180f0d94b01c5b7e0ed.tar.gz |
avformat/mxf: use FFABS to instead of abs
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mxf.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |