mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 11:49:48 +00:00
concatdec: Do not pass NULL to memcmp
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
parent
f605b56ad9
commit
99c68861f9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user