X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fbmvvideo.c;h=76a3d6f1f645c88ed7b3fd7f5c50521d6a85eeb4;hb=560eb7179a7c46ba277c9c120840816869a47a70;hp=5143b2a76b352a2f77ac93f8f50da93eff790316;hpb=e566667d8fd03e6697d281a13f25907e422f85f1;p=ffmpeg diff --git a/libavcodec/bmvvideo.c b/libavcodec/bmvvideo.c index 5143b2a76b3..76a3d6f1f64 100644 --- a/libavcodec/bmvvideo.c +++ b/libavcodec/bmvvideo.c @@ -51,7 +51,7 @@ typedef struct BMVDecContext { const uint8_t *stream; } BMVDecContext; -#define NEXT_BYTE(v) v = forward ? v + 1 : v - 1; +#define NEXT_BYTE(v) (v) = forward ? (v) + 1 : (v) - 1; static int decode_bmv_frame(const uint8_t *source, int src_len, uint8_t *frame, int frame_off) {