[Mplayer-cvslog] CVS: main/libmpcodecs ad_pcm.c,1.11,1.12

Roberto Togni CVS syncmail at mplayerhq.hu
Sun May 23 23:45:31 CEST 2004


CVS change done by Roberto Togni CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv9473

Modified Files:
	ad_pcm.c 
Log Message:
Fix "raw " audio in mov files.


Index: ad_pcm.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_pcm.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- ad_pcm.c	16 May 2004 10:48:59 -0000	1.11
+++ ad_pcm.c	23 May 2004 21:45:29 -0000	1.12
@@ -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




More information about the MPlayer-cvslog mailing list