[FFmpeg-cvslog] fftools/ffplay_renderer: declare function argument as const
Leo Izen
git at videolan.org
Mon Nov 27 17:45:27 EET 2023
ffmpeg | branch: master | Leo Izen <leo.izen at gmail.com> | Thu Nov 23 09:38:19 2023 -0500| [36980179a0065e119dcfeea26b37777f9cec7066] | committer: Zhao Zhili
fftools/ffplay_renderer: declare function argument as const
Declaring the function argument as const fixes a warning down the line
that the const parameter is stripped. We don't modify this argument.
Signed-off-by: Leo Izen <leo.izen at gmail.com>
Signed-off-by: Zhao Zhili <zhilizhao at tencent.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=36980179a0065e119dcfeea26b37777f9cec7066
---
fftools/ffplay_renderer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fftools/ffplay_renderer.c b/fftools/ffplay_renderer.c
index a57e4980eb..45ca84fa95 100644
--- a/fftools/ffplay_renderer.c
+++ b/fftools/ffplay_renderer.c
@@ -133,7 +133,7 @@ static const char *optional_device_exts[] = {
"VK_MESA_video_decode_av1",
};
-static inline int enable_debug(AVDictionary *opt)
+static inline int enable_debug(const AVDictionary *opt)
{
AVDictionaryEntry *entry = av_dict_get(opt, "debug", NULL, 0);
int debug = entry && strtol(entry->value, NULL, 10);
More information about the ffmpeg-cvslog
mailing list