summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorrtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-11-05 15:32:50 +0000
committerrtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-11-05 15:32:50 +0000
commit1cfe5263b1af5a0d047a6bcceec81db0f86e965c (patch)
tree935dbd4479e5e98da5da909364c0356b5ae3a4e9 /libmpdemux
parent5338f357ca419fa9e5aad1fd901df1eebc05711c (diff)
downloadmpv-1cfe5263b1af5a0d047a6bcceec81db0f86e965c.tar.bz2
mpv-1cfe5263b1af5a0d047a6bcceec81db0f86e965c.tar.xz
Use correct demuxer type for aac in shoutcast streams
(content-type="audio/aacp"). Fixes http://160.79.128.40:7040 (it does not work with internal faad) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16918 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/http.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpdemux/http.c b/libmpdemux/http.c
index 3a9854f272..0412c13b0f 100644
--- a/libmpdemux/http.c
+++ b/libmpdemux/http.c
@@ -768,6 +768,8 @@ static int http_streaming_start(stream_t *stream, int* file_format) {
// handling like later
if ( (field_data = http_get_field(http_hdr, "content-type")) != NULL && (!strcmp(field_data, "video/nsv") || !strcmp(field_data, "misc/ultravox")))
*file_format = DEMUXER_TYPE_NSV;
+ else if ( (field_data = http_get_field(http_hdr, "content-type")) != NULL && (!strcmp(field_data, "audio/aacp")))
+ *file_format = DEMUXER_TYPE_AAC;
else
*file_format = DEMUXER_TYPE_AUDIO;
return 0;