diff mbox

[FFmpeg-devel,06/11] avformat/mux: use FFABS to instead of fabs

Message ID 20171115074427.25409-1-lq@chinaffmpeg.org
State New
Headers show

Commit Message

Steven Liu Nov. 15, 2017, 7:44 a.m. UTC
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
---
 libavformat/mux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/libavformat/mux.c b/libavformat/mux.c
index b1244c67f3..ec18c6d7b0 100644
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -316,7 +316,7 @@  FF_ENABLE_DEPRECATION_WARNINGS
                 goto fail;
             }
             if (av_cmp_q(st->sample_aspect_ratio, par->sample_aspect_ratio)
-                && fabs(av_q2d(st->sample_aspect_ratio) - av_q2d(par->sample_aspect_ratio)) > 0.004*av_q2d(st->sample_aspect_ratio)
+                && FFABS(av_q2d(st->sample_aspect_ratio) - av_q2d(par->sample_aspect_ratio)) > 0.004*av_q2d(st->sample_aspect_ratio)
             ) {
                 if (st->sample_aspect_ratio.num != 0 &&
                     st->sample_aspect_ratio.den != 0 &&