From 1cfe5263b1af5a0d047a6bcceec81db0f86e965c Mon Sep 17 00:00:00 2001 From: rtognimp Date: Sat, 5 Nov 2005 15:32:50 +0000 Subject: [PATCH] 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 --- libmpdemux/http.c | 2 ++ 1 file changed, 2 insertions(+) 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;