OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37013fd
)
avcodec/bmvvideo: Add () to protect NEXT_BYTE() argument
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 16 Feb 2015 21:56:09 +0000
(22:56 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 16 Feb 2015 22:09:09 +0000
(23:09 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/bmvvideo.c
patch
|
blob
|
history
diff --git
a/libavcodec/bmvvideo.c
b/libavcodec/bmvvideo.c
index
5143b2a
..
76a3d6f
100644
(file)
--- 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)
{