changeset 6233:e2f1b1b8f8b4

8bit 'twos' S8 pcm audio support - fixes MOTI1E.MOV
author arpi
date Thu, 30 May 2002 00:40:55 +0000
parents f8e0eac1256c
children af0b011c9440
files libmpcodecs/ad_pcm.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_pcm.c	Thu May 30 00:26:23 2002 +0000
+++ b/libmpcodecs/ad_pcm.c	Thu May 30 00:40:55 2002 +0000
@@ -30,6 +30,9 @@
     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;