diff --git a/libavcodec/v210dec.c b/libavcodec/v210dec.c index f4b2ebe67ed87de27fe6f4e175fecd5bb112a6c2..0d71b5004fae590ad5ef24d6cc1abbb3f8af1d94 100644 --- a/libavcodec/v210dec.c +++ b/libavcodec/v210dec.c @@ -74,7 +74,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, *a++ = val << 6; \ *b++ = (val >> 4) & 0xFFC0; \ *c++ = (val >> 14) & 0xFFC0; \ - } while (0); + } while (0) for (h = 0; h < avctx->height; h++) { const uint32_t *src = (const uint32_t*)psrc; diff --git a/libavcodec/v210enc.c b/libavcodec/v210enc.c index f1fb8d288483e8b6b3edddc41197336d1dcb6775..8f20f73d45ebcd17f196b061d0eb50b3c63a61bc 100644 --- a/libavcodec/v210enc.c +++ b/libavcodec/v210enc.c @@ -72,7 +72,7 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, ((*b++ & 0xFFC0) << 4); \ val|= (*c++ & 0xFFC0) << 14; \ bytestream_put_le32(&p, val); \ - } while (0); + } while (0) for (h = 0; h < avctx->height; h++) { uint32_t val;