[FFmpeg-cvslog] qtrle: cosmetics, reformat CHECK_PIXEL_PTR() macro

Anton Khirnov git at videolan.org
Sun Feb 24 14:00:46 CET 2013


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Feb 14 18:00:11 2013 +0100| [7b4f91155bd4ef5a8d4e9af65c48b42bfa5b52c6] | committer: Anton Khirnov

qtrle: cosmetics, reformat CHECK_PIXEL_PTR() macro

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7b4f91155bd4ef5a8d4e9af65c48b42bfa5b52c6
---

 libavcodec/qtrle.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/libavcodec/qtrle.c b/libavcodec/qtrle.c
index aef0bcc..eca96e2 100644
--- a/libavcodec/qtrle.c
+++ b/libavcodec/qtrle.c
@@ -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)
 {



More information about the ffmpeg-cvslog mailing list