mirror of https://git.ffmpeg.org/ffmpeg.git
lavc/libaribb24: protect handled value with parenthesis in RGB_TO_BGR
This commit is contained in:
parent
4beccf400d
commit
03824afdb4
|
@ -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…
Reference in New Issue