ffmpeg | branch: master | Steven Liu <[email protected]> | Mon Nov 20 
10:51:06 2017 +0800| [462a14b1e9373bc4e4c535b0417eae5773a6172a] | committer: 
Steven Liu

avformat/swfenc: use FFABS to instead of abs

Reviewed-by: Michael Niedermayer <[email protected]>
Signed-off-by: Steven Liu <[email protected]>

> 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++;

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to