lavc/libaribb24: protect handled value with parenthesis in RGB_TO_BGR

pull/307/head
Jan Ekström 6 years ago
parent 4beccf400d
commit 03824afdb4
  1. 2
      libavcodec/libaribb24.c

@ -202,7 +202,7 @@ static int libaribb24_close(AVCodecContext *avctx)
return 0; 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) static int libaribb24_handle_regions(AVCodecContext *avctx, AVSubtitle *sub)
{ {

Loading…
Cancel
Save