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] avutil/hwcontext_vulkan: add include for boolean literals (PR #20155)
@ 2025-08-07 12:18 Leo Izen
  0 siblings, 0 replies; 2+ messages in thread
From: Leo Izen @ 2025-08-07 12:18 UTC (permalink / raw)
  To: ffmpeg-devel

PR #20155 opened by Leo Izen (Traneptora)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20155
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20155.patch

One call of av_assert2(false && foo) is in this file, which causes
it to fail to compile on certain platforms with --assert-level=2. We
fix this by #including stdbool.h to declare false as a literal.

Signed-off-by: Leo Izen <leo.izen@gmail.com>


From dc700e03eacf5f1cb137ffb367eee12717c02a50 Mon Sep 17 00:00:00 2001
From: Leo Izen <leo.izen@gmail.com>
Date: Thu, 7 Aug 2025 08:14:02 -0400
Subject: [PATCH] avutil/hwcontext_vulkan: add include for boolean literals

One call of av_assert2(false && foo) is in this file, which causes
it to fail to compile on certain platforms with --assert-level=2. We
fix this by #including stdbool.h to declare false as a literal.

Signed-off-by: Leo Izen <leo.izen@gmail.com>
---
 libavutil/hwcontext_vulkan.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
index 40e27d56ad..401b6fb4a7 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/libavutil/hwcontext_vulkan.c
@@ -30,6 +30,8 @@
 #include <unistd.h>
 #endif
 
+#include <stdbool.h>
+
 #include "thread.h"
 
 #include "config.h"
-- 
2.49.1

_______________________________________________
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] 2+ messages in thread

* Re: [FFmpeg-devel] [PATCH] avutil/hwcontext_vulkan: add include for boolean literals (PR #20155)
       [not found] <20250807121823.74B7668CFAE@ffbox0-bg.ffmpeg.org>
@ 2025-08-07 12:21 ` Nicolas George
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas George @ 2025-08-07 12:21 UTC (permalink / raw)
  To: Leo Izen; +Cc: ffmpeg-devel

Leo Izen (HE12025-08-07):
> PR #20155 opened by Leo Izen (Traneptora)
> URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20155
> Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20155.patch
> 
> One call of av_assert2(false && foo) is in this file, which causes
> it to fail to compile on certain platforms with --assert-level=2. We
> fix this by #including stdbool.h to declare false as a literal.

Better replace the av_assert2() with av_unreachable().

Regards,

-- 
  Nicolas George
_______________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2025-08-07 12:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-07 12:18 [FFmpeg-devel] [PATCH] avutil/hwcontext_vulkan: add include for boolean literals (PR #20155) Leo Izen
     [not found] <20250807121823.74B7668CFAE@ffbox0-bg.ffmpeg.org>
2025-08-07 12:21 ` Nicolas George

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