[FFmpeg-devel] [PATCH 5/5] Fix review feedback
Mark Gaiser
markg85 at gmail.com
Mon Jan 31 15:51:16 EET 2022
Little bit of consistency in punctuations.
Signed-off-by: Mark Gaiser <markg85 at gmail.com>
---
libavformat/ipfs.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/libavformat/ipfs.c b/libavformat/ipfs.c
index 8f6f91d85d..1644c74eac 100644
--- a/libavformat/ipfs.c
+++ b/libavformat/ipfs.c
@@ -46,7 +46,7 @@ typedef struct Context {
// A best-effort way to find the IPFS gateway.
// Only the most appropiate gateway is set. It's not actually requested (http call) to prevent
-// potential slowdown in startup. A potential timeout is handled by the HTTP protocol.
+// a potential slowdown in startup. A potential timeout is handled by the HTTP protocol.
//
// When done and the return value is 1, a potential IPFS Gateway is set in the gateway
// variable in the inner URLContext.
@@ -68,7 +68,7 @@ static int populate_ipfs_gateway(URLContext *h)
return 1;
}
- // Test $IPFS_GATEWAY
+ // Test $IPFS_GATEWAY.
c->gateway = getenv("IPFS_GATEWAY");
if (c->gateway) {
return 1;
@@ -82,7 +82,7 @@ static int populate_ipfs_gateway(URLContext *h)
if (!ipfs_full_data_folder) {
av_log(h, AV_LOG_DEBUG, "$IPFS_PATH is empty.\n");
- // Try via the home folder
+ // Try via the home folder.
home_folder = getenv("HOME");
ipfs_full_data_folder = malloc(strlen(home_folder) + strlen(ipfs_data_folder) + 1);
strcpy(ipfs_full_data_folder, home_folder);
@@ -117,7 +117,7 @@ static int populate_ipfs_gateway(URLContext *h)
return -1;
}
- // Get the contents of the gateway file
+ // Get the contents of the gateway file.
gateway_file = av_fopen_utf8(ipfs_gateway_file, "r");
if (!gateway_file) {
av_log(h, AV_LOG_ERROR, "Unable to open the IPFS gateway file (full uri: %s).\n", ipfs_gateway_file);
@@ -132,7 +132,7 @@ static int populate_ipfs_gateway(URLContext *h)
return -1;
}
- // Copy the gateway url into c->gateway
+ // Copy the gateway url into c->gateway.
c->gateway = malloc(strlen(gateway_file_data) + 1);
strcpy(c->gateway, gateway_file_data);
if (c->gateway) {
@@ -194,7 +194,7 @@ static int ipfs_open(URLContext *h, const char *uri, int flags, AVDictionary **o
goto err;
}
- // If we have IPNS, update the protocol
+ // If we have IPNS, update the protocol.
if (is_ipns) {
protocol_path_suffix = "ipns/";
}
--
2.35.1
More information about the ffmpeg-devel
mailing list