[FFmpeg-cvslog] swresample/dither_template: Do not define macro functions to nothing

Michael Niedermayer git at videolan.org
Thu May 7 01:20:05 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu May  7 01:07:30 2015 +0200| [223a85985393ab6e9a71dab4a8877ed4ac15d82c] | committer: Michael Niedermayer

swresample/dither_template: Do not define macro functions to nothing

This avoids potential warnings

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libswresample/dither_template.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libswresample/dither_template.c b/libswresample/dither_template.c
index 4af7312..1e35dfb 100644
--- a/libswresample/dither_template.c
+++ b/libswresample/dither_template.c
@@ -2,12 +2,12 @@
 #if defined(TEMPLATE_DITHER_DBL)
 #    define RENAME(N) N ## _double
 #    define DELEM  double
-#    define CLIP(v)
+#    define CLIP(v) while(0)
 
 #elif defined(TEMPLATE_DITHER_FLT)
 #    define RENAME(N) N ## _float
 #    define DELEM  float
-#    define CLIP(v)
+#    define CLIP(v) while(0)
 
 #elif defined(TEMPLATE_DITHER_S32)
 #    define RENAME(N) N ## _int32



More information about the ffmpeg-cvslog mailing list