Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH 1/8] avfilter/vf_elbg: Use unsigned for shifting into the top bit
@ 2024-07-08 22:24 Michael Niedermayer
  2024-07-08 22:24 ` [FFmpeg-devel] [PATCH 2/8] avfilter/vf_fftfilt: Remove dead depth code Michael Niedermayer
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Michael Niedermayer @ 2024-07-08 22:24 UTC (permalink / raw)
  To: FFmpeg development discussions and patches

Fixes: part of CID1355110 Overflowed constant

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 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 732a2c8abfb..dd22da07b6b 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) |
-- 
2.45.2

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-07-21 14:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-08 22:24 [FFmpeg-devel] [PATCH 1/8] avfilter/vf_elbg: Use unsigned for shifting into the top bit Michael Niedermayer
2024-07-08 22:24 ` [FFmpeg-devel] [PATCH 2/8] avfilter/vf_fftfilt: Remove dead depth code Michael Niedermayer
2024-07-08 22:24 ` [FFmpeg-devel] [PATCH 3/8] avfilter/vf_lut3d: Check av_scanf() Michael Niedermayer
2024-07-08 22:24 ` [FFmpeg-devel] [PATCH 4/8] avfilter/vf_neighbor_opencl: Use AV_PIX_MAX_PLANES Michael Niedermayer
2024-07-08 22:24 ` [FFmpeg-devel] [PATCH 5/8] avfilter/vf_premultiply: " Michael Niedermayer
2024-07-08 22:24 ` [FFmpeg-devel] [PATCH 6/8] avfilter/scale_eval: Use 64bit, check values in ff_scale_adjust_dimensions() Michael Niedermayer
2024-07-08 22:24 ` [FFmpeg-devel] [PATCH 7/8] avfilter/vf_scale: Check ff_scale_adjust_dimensions() for failure Michael Niedermayer
2024-07-08 22:24 ` [FFmpeg-devel] [PATCH 8/8] avfilter/vf_scale: Cleanup some checks Michael Niedermayer
2024-07-09  6:59   ` Anton Khirnov
2024-07-21 14:35 ` [FFmpeg-devel] [PATCH 1/8] avfilter/vf_elbg: Use unsigned for shifting into the top bit Michael Niedermayer

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git