avformat/dashdec: Fix missing NULL check
This commit is contained in:
parent
29ef547c16
commit
5a98a027d6
@ -162,7 +162,7 @@ typedef struct DASHContext {
|
|||||||
static int ishttp(char *url)
|
static int ishttp(char *url)
|
||||||
{
|
{
|
||||||
const char *proto_name = avio_find_protocol_name(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)
|
static int aligned(int val)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user