On 01.02.2022 22:58, Mark Gaiser wrote:
+static int translate_ipfs_to_http(URLContext *h, const char *uri, int flags, 
AVDictionary **options)
+{
+    const char *ipfs_cid;
+    const char *protocol_path_suffix = "ipfs/";
+    char *fulluri;
+    int ret;
+    Context *c = h->priv_data;
+    int is_ipfs = (av_strstart(uri, "ipfs://", &ipfs_cid) || av_strstart(uri, 
"ipfs:", &ipfs_cid));
+    int is_ipns = (av_strstart(uri, "ipns://", &ipfs_cid) || av_strstart(uri, 
"ipns:", &ipfs_cid));

What's the point of this logic?
The first half of each check seems pointless, since the second half is true for everything the first one would cover.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to