A 'goto done;' statement is used to jump to the desired code.
---
libavformat/protocols.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/libavformat/protocols.c b/libavformat/protocols.c
index 0deadbfbe7..032f07bf72 100644
--- a/libavformat/protocols.c
+++ b/libavformat/protocols.c
@@ -102,11 +102,14 @@ iterate:
return (*p)->name;
}
} else {
- *opaque = NULL;
- return NULL;
+ goto done;
}
++p;
goto iterate;
+
+done:
+ *opaque = NULL;
+ return NULL;
}
const AVClass *avio_protocol_get_class(const char *name)
--
2.22.0
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".