[FFmpeg-cvslog] avformat/internal: always check arguments of hex_dump_debug()

Michael Niedermayer git at videolan.org
Thu May 7 01:06:26 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu May  7 00:56:02 2015 +0200| [3e14ed05f1debb6560fff6afc89c5c3ed0ac7a0d] | committer: Michael Niedermayer

avformat/internal: always check arguments of hex_dump_debug()

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

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

 libavformat/internal.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/internal.h b/libavformat/internal.h
index 5dacb45..c8d2354 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 {



More information about the ffmpeg-cvslog mailing list