[FFmpeg-cvslog] avformat/dashdec: Fix missing NULL check
sfan5
git at videolan.org
Thu Feb 4 04:31:01 EET 2021
ffmpeg | branch: master | sfan5 <sfan5 at 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)
More information about the ffmpeg-cvslog
mailing list