summaryrefslogtreecommitdiff
path: root/libavcodec/libaribb24.c
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2019-02-11 02:06:37 +0200
committerJan Ekström <jeebjp@gmail.com>2019-02-12 20:16:40 +0200
commit03824afdb4a5ad25c18775b6992bb3959eb82d85 (patch)
treee5de16b57377d97e351d5ca49724a533043a7a26 /libavcodec/libaribb24.c
parent4beccf400df3d9f319a977d4c4a37c926e7a3f8d (diff)
lavc/libaribb24: protect handled value with parenthesis in RGB_TO_BGR
Diffstat (limited to 'libavcodec/libaribb24.c')
-rw-r--r--libavcodec/libaribb24.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libaribb24.c b/libavcodec/libaribb24.c
index d6cccd117b..43da2b675d 100644
--- a/libavcodec/libaribb24.c
+++ b/libavcodec/libaribb24.c
@@ -202,7 +202,7 @@ static int libaribb24_close(AVCodecContext *avctx)
return 0;
}
-#define RGB_TO_BGR(c) ((c & 0xff) << 16 | (c & 0xff00) | ((c >> 16) & 0xff))
+#define RGB_TO_BGR(c) (((c) & 0xff) << 16 | ((c) & 0xff00) | (((c) >> 16) & 0xff))
static int libaribb24_handle_regions(AVCodecContext *avctx, AVSubtitle *sub)
{