[FFmpeg-cvslog] avfilter/vf_elbg: Use unsigned for shifting into the top bit
Michael Niedermayer
git at videolan.org
Sun Jul 21 18:18:02 EEST 2024
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon Jul 8 00:45:45 2024 +0200| [2af95b9214a6bf75f946440d36c349963396e23b] | committer: Michael Niedermayer
avfilter/vf_elbg: Use unsigned for shifting into the top bit
Fixes: part of CID1355110 Overflowed constant
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2af95b9214a6bf75f946440d36c349963396e23b
---
libavfilter/vf_elbg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_elbg.c b/libavfilter/vf_elbg.c
index 732a2c8abf..dd22da07b6 100644
--- a/libavfilter/vf_elbg.c
+++ b/libavfilter/vf_elbg.c
@@ -195,7 +195,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
p0 = (uint8_t *)out->data[0];
for (i = 0; i < elbg->codebook_length; i++) {
- const int al = elbg->use_alpha ? elbg->codebook[i*4+3] : 0xff;
+ const unsigned al = elbg->use_alpha ? elbg->codebook[i*4+3] : 0xff;
pal[i] = al << 24 |
(elbg->codebook[i*4+2] << 16) |
(elbg->codebook[i*4+1] << 8) |
More information about the ffmpeg-cvslog
mailing list