mirror of
https://github.com/mpv-player/mpv
synced 2025-03-18 17:40:30 +00:00
8bit 'twos' S8 pcm audio support - fixes MOTI1E.MOV
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6234 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
38e810acba
commit
346b7d622c
@ -30,6 +30,9 @@ static int init(sh_audio_t *sh_audio)
|
||||
case 0x11: sh_audio->sample_format=AFMT_IMA_ADPCM;break;
|
||||
case 0x50: sh_audio->sample_format=AFMT_MPEG;break;
|
||||
/* case 0x2000: sh_audio->sample_format=AFMT_AC3; */
|
||||
case 0x736F7774:
|
||||
if(sh_audio->samplesize==1) sh_audio->sample_format=AFMT_S8; // 'twos'
|
||||
break;
|
||||
default: if(sh_audio->samplesize!=2) sh_audio->sample_format=AFMT_U8;
|
||||
}
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user