[FFmpeg-cvslog] avformat/swfenc: use FFABS to instead of abs

Steven Liu git at videolan.org
Mon Nov 20 04:53:27 EET 2017


ffmpeg | branch: master | Steven Liu <lq at chinaffmpeg.org> | Mon Nov 20 10:51:06 2017 +0800| [462a14b1e9373bc4e4c535b0417eae5773a6172a] | committer: Steven Liu

avformat/swfenc: use FFABS to instead of abs

Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: Steven Liu <lq at chinaffmpeg.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=462a14b1e9373bc4e4c535b0417eae5773a6172a
---

 libavformat/swfenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/swfenc.c b/libavformat/swfenc.c
index cada45ef9a..f53db0fb2b 100644
--- a/libavformat/swfenc.c
+++ b/libavformat/swfenc.c
@@ -69,7 +69,7 @@ static inline void max_nbits(int *nbits_ptr, int val)
 
     if (val == 0)
         return;
-    val = abs(val);
+    val = FFABS(val);
     n = 1;
     while (val != 0) {
         n++;



More information about the ffmpeg-cvslog mailing list