summaryrefslogtreecommitdiffstats
path: root/libavcodec/internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-09-20 12:55:10 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-09-20 12:56:29 +0200
commitb947ac9096e3eedd167a37c64509f0eba7a871e9 (patch)
tree14d1526c2f1f844165c7c5f493f97f8d4401b1b3 /libavcodec/internal.h
parentbddcf758d3a68ac0bcc3bc4fc4aa7156e05245d4 (diff)
downloadffmpeg-streaming-b947ac9096e3eedd167a37c64509f0eba7a871e9.zip
ffmpeg-streaming-b947ac9096e3eedd167a37c64509f0eba7a871e9.tar.gz
avcodec/internal: Use do {} while() for ff_tlog()
Avoids problems when used without braces Found-by: Clément Bœsch <u@pkh.me> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r--libavcodec/internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index fbee411..52b8917 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -57,7 +57,7 @@
#ifdef TRACE
# define ff_tlog(ctx, ...) av_log(ctx, AV_LOG_TRACE, __VA_ARGS__)
#else
-# define ff_tlog(ctx, ...) while(0) {}
+# define ff_tlog(ctx, ...) do {} while(0)
#endif
OpenPOWER on IntegriCloud