From 2e60c55a0f35e6a0cbe70e02a8349adf2976c8e6 Mon Sep 17 00:00:00 2001 From: rtognimp Date: Sun, 23 May 2004 21:45:29 +0000 Subject: [PATCH] Fix "raw " audio in mov files. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12499 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/ad_pcm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libmpcodecs/ad_pcm.c b/libmpcodecs/ad_pcm.c index 0d03fe5d30..7c7e597491 100644 --- a/libmpcodecs/ad_pcm.c +++ b/libmpcodecs/ad_pcm.c @@ -41,6 +41,10 @@ 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 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