[FFmpeg-devel] [PATCH 2.8/3] libavformat/3otocols.c: avio_enum_protocols(): Make the 'else' logic explicit
Michael Witten
mfwitten at gmail.com
Wed Aug 11 22:00:10 EEST 2021
---
libavformat/protocols.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/protocols.c b/libavformat/protocols.c
index 3f8433e317..5828113428 100644
--- a/libavformat/protocols.c
+++ b/libavformat/protocols.c
@@ -99,11 +99,12 @@ iterate:
if (!*p) {
*opaque = NULL;
return NULL;
- }
+ } else {
if ((output && (*p)->url_write) || (!output && (*p)->url_read)) {
*opaque = (void *)p;
return (*p)->name;
}
+ }
++p;
goto iterate;
}
--
2.22.0
More information about the ffmpeg-devel
mailing list