]> git.sesse.net Git - ffmpeg/commitdiff
qtrle: cosmetics, reformat CHECK_PIXEL_PTR() macro
authorAnton Khirnov <anton@khirnov.net>
Thu, 14 Feb 2013 17:00:11 +0000 (18:00 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sat, 23 Feb 2013 12:06:08 +0000 (13:06 +0100)
libavcodec/qtrle.c

index aef0bcc5054f0d2cff1324fbe6c1375034cf4d19..eca96e2d5f13200530a4140af1c1c9f10273de58 100644 (file)
@@ -46,12 +46,12 @@ typedef struct QtrleContext {
     uint32_t pal[256];
 } QtrleContext;
 
-#define CHECK_PIXEL_PTR(n) \
-  if ((pixel_ptr + n > pixel_limit) || (pixel_ptr + n < 0)) { \
-    av_log (s->avctx, AV_LOG_INFO, "Problem: pixel_ptr = %d, pixel_limit = %d\n", \
-      pixel_ptr + n, pixel_limit); \
-    return; \
-  } \
+#define CHECK_PIXEL_PTR(n)                                                            \
+    if ((pixel_ptr + n > pixel_limit) || (pixel_ptr + n < 0)) {                       \
+        av_log (s->avctx, AV_LOG_INFO, "Problem: pixel_ptr = %d, pixel_limit = %d\n", \
+                pixel_ptr + n, pixel_limit);                                          \
+        return;                                                                       \
+    }                                                                                 \
 
 static void qtrle_decode_1bpp(QtrleContext *s, int row_ptr, int lines_to_change)
 {