*ptr = '\0';
protocols = ffurl_get_protocols(NULL, NULL);
+ if (!protocols)
+ return NULL;
for (i = 0; protocols[i]; i++) {
const URLProtocol *up = protocols[i];
if (!strcmp(proto_str, up->name)) {
return up;
}
}
+ av_freep(&protocols);
return NULL;
}