[FFmpeg-cvslog] http: dont null check p, its unneeded
Michael Niedermayer
git at videolan.org
Tue Dec 11 00:07:33 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Dec 10 23:58:26 2012 +0100| [0a60f83075883f5d73c7f7f20d00ad31897178c2] | committer: Michael Niedermayer
http: dont null check p, its unneeded
Fixes CID747740
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0a60f83075883f5d73c7f7f20d00ad31897178c2
---
libavformat/http.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/http.c b/libavformat/http.c
index 766cf8a..576875f 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);
}
}
More information about the ffmpeg-cvslog
mailing list