[FFmpeg-cvslog] avformat/mxf: use FFABS to instead of abs
Steven Liu
git at videolan.org
Mon Nov 20 04:53:25 EET 2017
ffmpeg | branch: master | Steven Liu <lq at chinaffmpeg.org> | Mon Nov 20 10:50:30 2017 +0800| [cb259467d1ea0320b4150180f0d94b01c5b7e0ed] | committer: Steven Liu
avformat/mxf: use FFABS to instead of abs
Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cb259467d1ea0320b4150180f0d94b01c5b7e0ed
---
libavformat/mxf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the ffmpeg-cvslog
mailing list