Fix "raw " audio in mov files.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12499 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rtognimp 2004-05-23 21:45:29 +00:00
parent ecedaefbc9
commit 2e60c55a0f
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,10 @@ static int init(sh_audio_t *sh_audio)
case 0x11: sh_audio->sample_format=AFMT_IMA_ADPCM;break; case 0x11: sh_audio->sample_format=AFMT_IMA_ADPCM;break;
case 0x50: sh_audio->sample_format=AFMT_MPEG;break; case 0x50: sh_audio->sample_format=AFMT_MPEG;break;
/* case 0x2000: sh_audio->sample_format=AFMT_AC3; */ /* case 0x2000: sh_audio->sample_format=AFMT_AC3; */
case 0x20776172: // 'raw '
sh_audio->sample_format=AFMT_S16_BE;
if(sh_audio->samplesize==1) sh_audio->sample_format=AFMT_U8;
break;
case 0x736F7774: // 'twos' case 0x736F7774: // 'twos'
sh_audio->sample_format=AFMT_S16_BE; sh_audio->sample_format=AFMT_S16_BE;
// intended fall-through // intended fall-through