comparison libmpdemux/demux_rtp.cpp @ 8987:c83c18f58964

Support for MPEG-4 (AAC) audio RTSP/RTP Patch by Ross Finlayson <finlayson@live.com>
author bertrand
date Sat, 18 Jan 2003 14:22:30 +0000
parents 099205debc97
children bb490ffeebf5
comparison
equal deleted inserted replaced
8986:ab8350c450d9 8987:c83c18f58964
245 wf->nChannels = 1; 245 wf->nChannels = 1;
246 wf->nAvgBytesPerSec = 1650; 246 wf->nAvgBytesPerSec = 1650;
247 wf->nBlockAlign = 33; 247 wf->nBlockAlign = 33;
248 wf->wBitsPerSample = 16; 248 wf->wBitsPerSample = 16;
249 wf->cbSize = 0; 249 wf->cbSize = 0;
250 } else if (strcmp(subsession->codecName(), "MP4A-LATM") == 0) {
251 wf->wFormatTag = sh_audio->format = mmioFOURCC('m','p','4','a');
252 #ifndef HAVE_FAAD
253 fprintf(stderr, "WARNING: Playing MPEG-4 (AAC) Audio requires the \"faad\" library!\n");
254 #endif
255 #if (LIVEMEDIA_LIBRARY_VERSION_INT < 1042761600)
256 fprintf(stderr, "WARNING: This audio stream might not play correctly. Please upgrade to version \"2003.01.17\" or later of the \"LIVE.COM Streaming Media\" libraries.\n");
257 #else
258 // For the codec to work correctly, it needs "AudioSpecificConfig"
259 // data, which is parsed from the "StreamMuxConfig" string that
260 // was present (hopefully) in the SDP description:
261 unsigned codecdata_len;
262 sh_audio->codecdata
263 = parseStreamMuxConfigStr(subsession->fmtp_config(),
264 codecdata_len);
265 sh_audio->codecdata_len = codecdata_len;
266 #endif
250 } else { 267 } else {
251 fprintf(stderr, 268 fprintf(stderr,
252 "Unknown mplayer format code for MIME type \"audio/%s\"\n", 269 "Unknown mplayer format code for MIME type \"audio/%s\"\n",
253 subsession->codecName()); 270 subsession->codecName());
254 } 271 }