diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-10 23:58:26 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-11 00:03:23 +0100 |
commit | 0a60f83075883f5d73c7f7f20d00ad31897178c2 (patch) | |
tree | f713ab2e30055a609ef6b5a7c0258dd061fe18a7 | |
parent | b11a889055188f296bd8993883e3fdff84f17f5e (diff) | |
download | ffmpeg-0a60f83075883f5d73c7f7f20d00ad31897178c2.tar.gz |
http: dont null check p, its unneeded
Fixes CID747740
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/http.c b/libavformat/http.c index 766cf8a34d..576875f43a 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -357,7 +357,7 @@ static int process_line(URLContext *h, char *line, int line_count, s->willclose = 1; } else if (!av_strcasecmp (tag, "Server") && !av_strcasecmp (p, "AkamaiGHost")) { s->is_akamai = 1; - } else if (!av_strcasecmp (tag, "Content-Type") && p) { + } else if (!av_strcasecmp (tag, "Content-Type")) { av_free(s->mime_type); s->mime_type = av_strdup(p); } } |