From 5a98a027d6b4e21d8ada0b94ad81226b35c21446 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Thu, 4 Feb 2021 09:28:53 +0800 Subject: [PATCH] avformat/dashdec: Fix missing NULL check --- 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)