mirror of
https://github.com/mpv-player/mpv
synced 2025-03-31 15:59:34 +00:00
More support for audio format 0x0
Patch by Reimar Doeffinger git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12540 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
30ccc5dd1e
commit
bcd6cde4f0
@ -26,6 +26,7 @@ static int init(sh_audio_t *sh_audio)
|
||||
sh_audio->samplesize=(h->wBitsPerSample+7)/8;
|
||||
sh_audio->sample_format=AFMT_S16_LE; // default
|
||||
switch(sh_audio->format){ /* hardware formats: */
|
||||
case 0x0:
|
||||
case 0x1: // Microsoft PCM
|
||||
switch (sh_audio->samplesize) {
|
||||
case 1: sh_audio->sample_format=AFMT_U8; break;
|
||||
|
Loading…
Reference in New Issue
Block a user