Commit b947ac90 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/internal: Use do {} while() for ff_tlog()

Avoids problems when used without braces
Found-by: 's avatarClément Bœsch <u@pkh.me>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent bddcf758
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment