[FFmpeg-devel] [PATCH 07/11] avformat/mxf: use FFABS to instead of abs
Steven Liu
lq at chinaffmpeg.org
Wed Nov 15 09:44:39 EET 2017
Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
---
libavformat/mxf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/mxf.c b/libavformat/mxf.c
index bfc3218b81..2e23b5d739 100644
--- a/libavformat/mxf.c
+++ b/libavformat/mxf.c
@@ -155,7 +155,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;
--
2.11.0 (Apple Git-81)
More information about the ffmpeg-devel
mailing list