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>
pull/151/head
Michael Niedermayer 9 years ago
parent bddcf758d3
commit b947ac9096
  1. 2
      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

Loading…
Cancel
Save