Commit 99c68861 authored by Derek Buitenhuis's avatar Derek Buitenhuis

concatdec: Do not pass NULL to memcmp

Signed-off-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parent f605b56a
......@@ -120,7 +120,7 @@ static int add_file(AVFormatContext *avf, char *filename, ConcatFile **rfile,
proto = avio_find_protocol_name(filename);
proto_len = proto ? strlen(proto) : 0;
if (!memcmp(filename, proto, proto_len) &&
if (proto && !memcmp(filename, proto, proto_len) &&
(filename[proto_len] == ':' || filename[proto_len] == ',')) {
url = filename;
filename = NULL;
......
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