changeset 16917:c45409728a9d

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)
author rtognimp
date Sat, 05 Nov 2005 15:32:50 +0000
parents 56f3945e2a61
children f5e079f84466
files libmpdemux/http.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;