comparison libmpcodecs/ad_realaud.c @ 8094:b8a90a2af611

- realaudio ATRC (sony atrac3) codec support - fixed passing of codecdata from demuxer to codec patch by Fabian Franz <FabianFranz@gmx.de>
author arpi
date Mon, 04 Nov 2002 00:23:53 +0000
parents 18f8233094da
children 2d651a218031
comparison
equal deleted inserted replaced
8093:916d8b7fa6ed 8094:b8a90a2af611
110 { 110 {
111 ra_init_t init_data={ 111 ra_init_t init_data={
112 sh->wf->nSamplesPerSec,sh->wf->wBitsPerSample,sh->wf->nChannels, 112 sh->wf->nSamplesPerSec,sh->wf->wBitsPerSample,sh->wf->nChannels,
113 100, // ??? 113 100, // ???
114 ((short*)(sh->wf+1))[0], // subpacket size 114 ((short*)(sh->wf+1))[0], // subpacket size
115 sh->wf->nBlockAlign, 115 ((short*)(sh->wf+1))[3], // coded frame size
116 16, // ?? 116 ((short*)(sh->wf+1))[4], // codec data length
117 ((char*)(sh->wf+1))+6+8 117 ((char*)(sh->wf+1))+10 // extras
118 }; 118 };
119 result=raInitDecoder(sh->context,&init_data); 119 result=raInitDecoder(sh->context,&init_data);
120 if(result){ 120 if(result){
121 mp_msg(MSGT_DECAUDIO,MSGL_WARN,"Decoder init failed, error code: 0x%X\n",result); 121 mp_msg(MSGT_DECAUDIO,MSGL_WARN,"Decoder init failed, error code: 0x%X\n",result);
122 return 0; 122 return 0;