[FFmpeg-devel] [PATCH] cleanup: remove two extraneous semicolons.

Clément Bœsch ubitux at gmail.com
Mon Dec 12 08:04:12 CET 2011


---
 libavcodec/libx264.c    |    2 +-
 libavcodec/proresdec2.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index 38351e5..499c953 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -245,7 +245,7 @@ static av_cold int X264_close(AVCodecContext *avctx)
                         "bad value for '%s': '%s'\n", opt, param);            \
             return -1;                                                        \
         }                                                                     \
-    } while (0);
+    } while (0)
 
 static int convert_pix_fmt(enum PixelFormat pix_fmt)
 {
diff --git a/libavcodec/proresdec2.c b/libavcodec/proresdec2.c
index a96af4f..7f940d2 100644
--- a/libavcodec/proresdec2.c
+++ b/libavcodec/proresdec2.c
@@ -277,7 +277,7 @@ static int decode_picture_header(AVCodecContext *avctx, const uint8_t *buf, cons
             val = q;                                                    \
             SKIP_BITS(re, gb, q+1);                                     \
         }                                                               \
-    } while (0);                                                        \
+    } while (0)
 
 #define TOSIGNED(x) (((x) >> 1) ^ (-((x) & 1)))
 
-- 
1.7.8



More information about the ffmpeg-devel mailing list