avformat/internal: always check arguments of hex_dump_debug()
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 6 May 2015 22:56:02 +0000 (00:56 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 6 May 2015 23:05:45 +0000 (01:05 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/internal.h

index 5dacb45..c8d2354 100644 (file)
@@ -34,7 +34,7 @@
 #ifdef DEBUG
 #    define hex_dump_debug(class, buf, size) av_hex_dump_log(class, AV_LOG_DEBUG, buf, size)
 #else
-#    define hex_dump_debug(class, buf, size)
+#    define hex_dump_debug(class, buf, size) do { if (0) av_hex_dump_log(class, AV_LOG_DEBUG, buf, size); } while(0)
 #endif
 
 typedef struct AVCodecTag {