[FFmpeg-devel] [PATCH] avformat/protocols: fix discarded-qualifiers compiler warning

Nuo Mi nuomi2021 at gmail.com
Sun Feb 14 18:52:28 EET 2021


---
 libavformat/protocols.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/protocols.c b/libavformat/protocols.c
index 7df18fbb3b..0b43f66baf 100644
--- a/libavformat/protocols.c
+++ b/libavformat/protocols.c
@@ -111,10 +111,10 @@ const AVClass *ff_urlcontext_child_class_iterate(void **iter)
 
 const char *avio_enum_protocols(void **opaque, int output)
 {
-    const URLProtocol **p = *opaque;
+    const URLProtocol *const *p = *opaque;
 
     p = p ? p + 1 : url_protocols;
-    *opaque = p;
+    *opaque = (void*)p;
     if (!*p) {
         *opaque = NULL;
         return NULL;
-- 
2.25.1



More information about the ffmpeg-devel mailing list