0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02: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:
arpi 2002-05-30 00:40:55 +00:00
parent 38e810acba
commit 346b7d622c

View File

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