Commit 17a62cbc authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/bmvvideo: Add () to protect NEXT_BYTE() argument

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 37013fd0
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment