diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2017-07-06 13:15:00 -0400 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2017-07-06 15:35:32 -0400 |
commit | 99c68861f9c79033e09ad842e2651a4b3aea95ea (patch) | |
tree | d5f86822673849e2d43fae5ebd23ff0faed4afab /libavformat/concatdec.c | |
parent | f605b56ad9c5965792359e5474238e318aed1399 (diff) | |
download | ffmpeg-99c68861f9c79033e09ad842e2651a4b3aea95ea.tar.gz |
concatdec: Do not pass NULL to memcmp
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavformat/concatdec.c')
-rw-r--r-- | libavformat/concatdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c index e57e5ce0ec..e8b37d6a08 100644 --- a/libavformat/concatdec.c +++ b/libavformat/concatdec.c @@ -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; |