ffmpeg | branch: master | sfan5 <sf...@live.de> | Thu Feb  4 09:28:53 2021 
+0800| [5a98a027d6b4e21d8ada0b94ad81226b35c21446] | committer: Steven Liu

avformat/dashdec: Fix missing NULL check

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5a98a027d6b4e21d8ada0b94ad81226b35c21446
---

 libavformat/dashdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index 3fd657c06b..04dbdb668e 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -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)

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to