diff options
author | sfan5 <sfan5@live.de> | 2021-02-04 09:28:53 +0800 |
---|---|---|
committer | Steven Liu <liuqi05@kuaishou.com> | 2021-02-04 10:30:37 +0800 |
commit | 5a98a027d6b4e21d8ada0b94ad81226b35c21446 (patch) | |
tree | 99a4ff2700b589e523f4995a4e9c1796d93ab641 /libavformat | |
parent | 29ef547c16cdfc6d4dfe71400e17cee13c9ff399 (diff) | |
download | ffmpeg-5a98a027d6b4e21d8ada0b94ad81226b35c21446.tar.gz |
avformat/dashdec: Fix missing NULL check
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/dashdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |