diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-25 23:08:51 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-25 23:08:51 +0200 |
commit | b0d0e29ffbd42f9feb358718cfe6a90608b69ecf (patch) | |
tree | ef4f5c78da4a6a297fe0054aa0bb046d4a06e763 | |
parent | 9f50d3b944a9797186af2e309eeb3a97a1f009d8 (diff) | |
download | ffmpeg-b0d0e29ffbd42f9feb358718cfe6a90608b69ecf.tar.gz |
avcodec/sgirledec: fix () in RBG323_TO_BGR8() macro
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/sgirledec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/sgirledec.c b/libavcodec/sgirledec.c index 5e2cd3a4d3..69d012e8e4 100644 --- a/libavcodec/sgirledec.c +++ b/libavcodec/sgirledec.c @@ -49,9 +49,9 @@ static av_cold int sgirle_decode_init(AVCodecContext *avctx) * Convert SGI RBG323 pixel into AV_PIX_FMT_BGR8 * SGI RGB data is packed as 8bpp, (msb)3R 2B 3G(lsb) */ -#define RBG323_TO_BGR8(x) (((x << 3) & 0xC0) | \ - ((x << 3) & 0x38) | \ - ((x >> 5) & 7)) +#define RBG323_TO_BGR8(x) ((((x) << 3) & 0xC0) | \ + (((x) << 3) & 0x38) | \ + (((x) >> 5) & 7)) static av_always_inline void rbg323_to_bgr8(uint8_t *dst, const uint8_t *src, int size) { |