Mercurial > mplayer.hg
diff libmpdemux/demux_rtp_codec.cpp @ 22463:979b2aa16e80
support for AMR; it works inserting in the first byte of the demux_packet
a 1-byte header that live555 seems to be stripping for some reason, although according
to the specs it should be there. Patch by Carl Eugen Hoyos.
author | nicodvb |
---|---|
date | Tue, 06 Mar 2007 22:53:52 +0000 |
parents | b465e5be1a53 |
children | 3d6a64f3d28f |
line wrap: on
line diff
--- a/libmpdemux/demux_rtp_codec.cpp Tue Mar 06 19:10:36 2007 +0000 +++ b/libmpdemux/demux_rtp_codec.cpp Tue Mar 06 22:53:52 2007 +0000 @@ -184,6 +184,10 @@ wf->nBlockAlign = 1; wf->wBitsPerSample = 8; wf->cbSize = 0; + } else if (strcmp(subsession->codecName(), "AMR") == 0) { + wf->wFormatTag = sh_audio->format = mmioFOURCC('s','a','m','r'); + } else if (strcmp(subsession->codecName(), "AMR-WB") == 0) { + wf->wFormatTag = sh_audio->format = mmioFOURCC('s','a','w','b'); } else if (strcmp(subsession->codecName(), "GSM") == 0) { wf->wFormatTag = sh_audio->format = mmioFOURCC('a','g','s','m'); wf->nAvgBytesPerSec = 1650;