PR #22325 opened by Kacper Michajłow (kasper93)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22325
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22325.patch

Fixes:
warning: initializing 'char *' with an expression of type 'const char *'
discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers


From 72479db56fec63a4af7eeb17443589d14b136f0b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= <[email protected]>
Date: Sat, 28 Feb 2026 03:15:28 +0100
Subject: [PATCH] fftools/cmdutils: constify string
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Fixes:
warning: initializing 'char *' with an expression of type 'const char *'
discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers

Signed-off-by: Kacper Michajłow <[email protected]>
---
 fftools/cmdutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
index 9a365c228d..2f9bae9f21 100644
--- a/fftools/cmdutils.c
+++ b/fftools/cmdutils.c
@@ -275,7 +275,7 @@ static int write_option(void *optctx, const OptionDef *po, 
const char *opt,
     }
 
     if (po->flags & OPT_FLAG_SPEC) {
-        char *p = strchr(opt, ':');
+        const char *p = strchr(opt, ':');
         char *str;
 
         sol = dst;
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to