Commit 936751b6 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/avio: Fix null pointer dereference in case of memleak

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 7bacf745
......@@ -270,6 +270,8 @@ static const struct URLProtocol *url_find_protocol(const char *filename)
*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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment