mirror of https://github.com/mpv-player/mpv
use fallback for unsupported formats instead of quitting
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12441 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5397eb9240
commit
138013ca3f
|
@ -196,8 +196,9 @@ static int init(int rate,int channels,int format,int flags){
|
|||
aspec.format = AUDIO_U16MSB;
|
||||
break;
|
||||
default:
|
||||
aspec.format = AUDIO_S16LSB;
|
||||
ao_data.format = AFMT_S16_LE;
|
||||
mp_msg(MSGT_AO,MSGL_WARN,"SDL: Unsupported audio format: 0x%x.\n", format);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* The desired audio frequency in samples-per-second. */
|
||||
|
|
Loading…
Reference in New Issue