Commit 6710f87e authored by mru's avatar mru

Add missing parens in AV_WN macros

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21260 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent efd904ce
......@@ -157,17 +157,17 @@ struct unaligned_32 { uint32_t l; } __attribute__((packed));
struct unaligned_16 { uint16_t l; } __attribute__((packed));
# define AV_RN(s, p) (((const struct unaligned_##s *) (p))->l)
# define AV_WN(s, p, v) (((struct unaligned_##s *) (p))->l) = (v)
# define AV_WN(s, p, v) ((((struct unaligned_##s *) (p))->l) = (v))
#elif defined(__DECC)
# define AV_RN(s, p) (*((const __unaligned uint##s##_t*)(p)))
# define AV_WN(s, p, v) *((__unaligned uint##s##_t*)(p)) = (v)
# define AV_WN(s, p, v) (*((__unaligned uint##s##_t*)(p)) = (v))
#elif HAVE_FAST_UNALIGNED
# define AV_RN(s, p) (*((const uint##s##_t*)(p)))
# define AV_WN(s, p, v) *((uint##s##_t*)(p)) = (v)
# define AV_WN(s, p, v) (*((uint##s##_t*)(p)) = (v))
#else
......
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