From 3e14ed05f1debb6560fff6afc89c5c3ed0ac7a0d Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 7 May 2015 00:56:02 +0200 Subject: [PATCH] avformat/internal: always check arguments of hex_dump_debug() Signed-off-by: Michael Niedermayer --- libavformat/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/internal.h b/libavformat/internal.h index 5dacb45133..c8d2354820 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -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 {