mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-24 17:32:22 +08:00
avoid more "0xFF << 24" as it is considered a integer overflow in C99
missed these in my previous search and replace Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -180,7 +180,7 @@ int ff_set_systematic_pal2(uint32_t pal[256], enum AVPixelFormat pix_fmt)
|
||||
default:
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
pal[i] = b + (g<<8) + (r<<16) + (0xFF<<24);
|
||||
pal[i] = b + (g<<8) + (r<<16) + (0xFFU<<24);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user