Browse Source

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.1
Michael Niedermayer 9 years ago
parent
commit
936751b652
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/avio.c

+ 2
- 0
libavformat/avio.c View File

@@ -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)) {


Loading…
Cancel
Save