1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 07:42:17 +00:00

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
This commit is contained in:
rtognimp 2005-11-05 15:32:50 +00:00
parent 5338f357ca
commit 1cfe5263b1

View File

@ -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;