]> git.sesse.net Git - ffmpeg/commitdiff
avformat/dashdec: Fix missing NULL check
authorsfan5 <sfan5@live.de>
Thu, 4 Feb 2021 01:28:53 +0000 (09:28 +0800)
committerSteven Liu <liuqi05@kuaishou.com>
Thu, 4 Feb 2021 02:30:37 +0000 (10:30 +0800)
libavformat/dashdec.c

index 3fd657c06b75bc12baaf0ff40736d93bc2edd728..04dbdb668e896920cc2ab6a3acbb5762feecdc51 100644 (file)
@@ -162,7 +162,7 @@ typedef struct DASHContext {
 static int ishttp(char *url)
 {
     const char *proto_name = avio_find_protocol_name(url);
-    return av_strstart(proto_name, "http", NULL);
+    return proto_name && av_strstart(proto_name, "http", NULL);
 }
 
 static int aligned(int val)