[FFmpeg-cvslog] lavc/libaribb24: protect handled value with parenthesis in RGB_TO_BGR
Jan Ekström
git at videolan.org
Tue Feb 12 21:03:56 EET 2019
ffmpeg | branch: master | Jan Ekström <jeebjp at gmail.com> | Mon Feb 11 02:06:37 2019 +0200| [03824afdb4a5ad25c18775b6992bb3959eb82d85] | committer: Jan Ekström
lavc/libaribb24: protect handled value with parenthesis in RGB_TO_BGR
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=03824afdb4a5ad25c18775b6992bb3959eb82d85
---
libavcodec/libaribb24.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/libaribb24.c b/libavcodec/libaribb24.c
index d6cccd117b..43da2b675d 100644
--- a/libavcodec/libaribb24.c
+++ b/libavcodec/libaribb24.c
@@ -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)
{
More information about the ffmpeg-cvslog
mailing list