Commit 03824afd authored by Jan Ekström's avatar Jan Ekström

lavc/libaribb24: protect handled value with parenthesis in RGB_TO_BGR

parent 4beccf40
......@@ -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)
{
......
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