diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 38351e59cf..499c9536df 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 a96af4fa9f..7f940d2788 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)))