This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new e9b3c55fe0 ffv1_vulkan: simplify the is_rgb expression
e9b3c55fe0 is described below
commit e9b3c55fe0321915a70f44f30b276ef2afdc3a0c
Author: romainhedouin <[email protected]>
AuthorDate: Thu Oct 15 13:02:31 2026 +0200
Commit: Lynne <[email protected]>
CommitDate: Sat Oct 17 06:50:02 2026 +0000
ffv1_vulkan: simplify the is_rgb expression
!(colorspace == 0 && fmt != YA8) && fmt != YA8 is the same as
colorspace != 0 && fmt != YA8. No change in behaviour.
Found during a code review sweep of ffmpeg using an LLM.
---
libavcodec/ffv1_vulkan.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavcodec/ffv1_vulkan.c b/libavcodec/ffv1_vulkan.c
index fb67cf0d07..abe3653c19 100644
--- a/libavcodec/ffv1_vulkan.c
+++ b/libavcodec/ffv1_vulkan.c
@@ -27,8 +27,7 @@ void ff_ffv1_vk_set_common_sl(AVCodecContext *avctx,
FFV1Context *f,
{
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(sw_format);
int color_planes = av_pix_fmt_desc_get(sw_format)->nb_components;
- int is_rgb = !(f->colorspace == 0 && sw_format != AV_PIX_FMT_YA8) &&
- !(sw_format == AV_PIX_FMT_YA8);
+ int is_rgb = f->colorspace != 0 && sw_format != AV_PIX_FMT_YA8;
SPEC_LIST_ADD(sl, 2, 32, f->version);
SPEC_LIST_ADD(sl, 3, 32, f->quant_table_count);
--
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]