summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorrtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-04-19 19:55:37 +0000
committerrtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-04-19 19:55:37 +0000
commit6b3b406407d86220307fa0d8b5b9629772884b0a (patch)
tree8745a780e7fbedb80e79a17bc43cc2cc25221e16 /libmpdemux
parentdf14981c08daa7fc5752ae1fc72af9c979515abf (diff)
downloadmpv-6b3b406407d86220307fa0d8b5b9629772884b0a.tar.bz2
mpv-6b3b406407d86220307fa0d8b5b9629772884b0a.tar.xz
10l: don't run strcmp if arg is NULL
Pathc by adland git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12237 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/network.c b/libmpdemux/network.c
index 731b0d098f..9694d48fb8 100644
--- a/libmpdemux/network.c
+++ b/libmpdemux/network.c
@@ -769,7 +769,7 @@ extension=NULL;
// If content-type == video/nsv we most likely have a winamp video stream
// otherwise it should be mp3. if there are more types consider adding mime type
// handling like later
- if( !strcmp((field_data = http_get_field(http_hdr, "content-type")),"video/nsv"))
+ if ( (field_data = http_get_field(http_hdr, "content-type")) != NULL && !strcmp(field_data, "video/nsv"))
*file_format = DEMUXER_TYPE_NSV;
else
*file_format = DEMUXER_TYPE_AUDIO;