Mercurial > mplayer.hg
changeset 12498:827d908c7705
Fix "raw " audio in mov files.
author | rtognimp |
---|---|
date | Sun, 23 May 2004 21:45:29 +0000 |
parents | da17b2c262de |
children | e18bdf65023b |
files | libmpcodecs/ad_pcm.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ad_pcm.c Sun May 23 07:34:32 2004 +0000 +++ b/libmpcodecs/ad_pcm.c Sun May 23 21:45:29 2004 +0000 @@ -41,6 +41,10 @@ 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 0x20776172: // 'raw ' + sh_audio->sample_format=AFMT_S16_BE; + if(sh_audio->samplesize==1) sh_audio->sample_format=AFMT_U8; + break; case 0x736F7774: // 'twos' sh_audio->sample_format=AFMT_S16_BE; // intended fall-through