# HG changeset patch # User rtognimp # Date 1131204770 0 # Node ID c45409728a9d1a80c332f0342e04c22e8dcf7d9a # Parent 56f3945e2a614a7e59ca848eeefec9cfc5b0c10a 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) diff -r 56f3945e2a61 -r c45409728a9d libmpdemux/http.c --- a/libmpdemux/http.c Sat Nov 05 12:01:05 2005 +0000 +++ b/libmpdemux/http.c Sat Nov 05 15:32:50 2005 +0000 @@ -768,6 +768,8 @@ // 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;