diff --git a/libavutil/avassert.h b/libavutil/avassert.h
index fe307fa8945393a3d5301ae6ea2b09f8c502819b..25f24a6267838780473654481651fe28ff04f196 100644
--- a/libavutil/avassert.h
+++ b/libavutil/avassert.h
@@ -33,7 +33,13 @@
 /**
  * assert() equivalent, that is always enabled.
  */
-#define av_assert0(cond) do {if(!(cond)) { av_log(NULL, AV_LOG_FATAL, "Assertion %s failed at %s:%d\n", AV_STRINGIFY(cond), __FILE__, __LINE__); abort(); }}while(0)
+#define av_assert0(cond) do {                                           \
+    if (!(cond)) {                                                      \
+        av_log(NULL, AV_LOG_FATAL, "Assertion %s failed at %s:%d\n",    \
+               AV_STRINGIFY(cond), __FILE__, __LINE__);                 \
+        abort();                                                        \
+    }                                                                   \
+} while (0)
 
 
 /**