mirror of
https://github.com/mpv-player/mpv
synced 2025-03-03 20:57:45 +00:00
Add another content-type for aac audio in shoutcast streams
Fixes http://www.digitallyimported.com/aacplus/goapsy.pls git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16949 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
52946d2576
commit
59235ce33e
@ -768,7 +768,7 @@ 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")))
|
||||
else if ( (field_data = http_get_field(http_hdr, "content-type")) != NULL && (!strcmp(field_data, "audio/aacp") || !strcmp(field_data, "audio/aac")))
|
||||
*file_format = DEMUXER_TYPE_AAC;
|
||||
else
|
||||
*file_format = DEMUXER_TYPE_AUDIO;
|
||||
|
Loading…
Reference in New Issue
Block a user