[FFmpeg-cvslog] avcodec/bmvvideo: Add () to protect NEXT_BYTE() argument
Michael Niedermayer
git at videolan.org
Mon Feb 16 23:10:10 CET 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Feb 16 22:56:09 2015 +0100| [17a62cbcb9ee98774797334095ed46780406752e] | committer: Michael Niedermayer
avcodec/bmvvideo: Add () to protect NEXT_BYTE() argument
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=17a62cbcb9ee98774797334095ed46780406752e
---
libavcodec/bmvvideo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/bmvvideo.c b/libavcodec/bmvvideo.c
index 5143b2a..76a3d6f 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)
{
More information about the ffmpeg-cvslog
mailing list