lavc/libaribb24: protect handled value with parenthesis in RGB_TO_BGR

This commit is contained in:
Jan Ekström 2019-02-11 02:06:37 +02:00
parent 4beccf400d
commit 03824afdb4
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{