You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavc/libaribb24: protect handled value with parenthesis in RGB_TO_BGR
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user