[FFmpeg-devel] [PATCH 11/11] avformat/wavdecuse FFABS to instead of fabs

Steven Liu lq at chinaffmpeg.org
Wed Nov 15 09:45:18 EET 2017


Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
---
 libavformat/wavdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c
index b016185a1b..9f3e01e5b8 100644
--- a/libavformat/wavdec.c
+++ b/libavformat/wavdec.c
@@ -531,7 +531,7 @@ break_loop:
         && st->codecpar->sample_rate > 0
         && sample_count > 0 && st->codecpar->channels > 1
         && sample_count % st->codecpar->channels == 0) {
-        if (fabs(8.0 * data_size * st->codecpar->channels * st->codecpar->sample_rate /
+        if (FFABS(8.0 * data_size * st->codecpar->channels * st->codecpar->sample_rate /
             sample_count /st->codecpar->bit_rate - 1.0) < 0.3)
             sample_count /= st->codecpar->channels;
     }
-- 
2.11.0 (Apple Git-81)






More information about the ffmpeg-devel mailing list