diff options
author | Jan Ekström <jeebjp@gmail.com> | 2019-02-11 03:06:37 +0300 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2019-02-12 21:16:40 +0300 |
commit | 03824afdb4a5ad25c18775b6992bb3959eb82d85 (patch) | |
tree | e5de16b57377d97e351d5ca49724a533043a7a26 /libavcodec/libaribb24.c | |
parent | 4beccf400df3d9f319a977d4c4a37c926e7a3f8d (diff) |
lavc/libaribb24: protect handled value with parenthesis in RGB_TO_BGR
Diffstat (limited to 'libavcodec/libaribb24.c')
-rw-r--r-- | libavcodec/libaribb24.c | 2 |
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) { |