[MPlayer-dev-eng] [PATCH] For GSM/RTP streams

Ross Finlayson finlayson at live.com
Sat Oct 12 11:29:42 CEST 2002


Thanks to Arpi for his help with this.

	Ross.
-------------- next part --------------
Index: libmpdemux/demux_rtp.cpp
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_rtp.cpp,v
retrieving revision 1.5
diff -u -r1.5 demux_rtp.cpp
--- libmpdemux/demux_rtp.cpp	8 Oct 2002 05:46:23 -0000	1.5
+++ libmpdemux/demux_rtp.cpp	12 Oct 2002 09:19:22 -0000
@@ -236,7 +236,7 @@
 	    wf->wBitsPerSample = 8;
 	    wf->cbSize = 0;
 	  } else if (strcmp(subsession->codecName(), "GSM") == 0) {
-	    wf->wFormatTag = sh_audio->format = 0x31;
+	    wf->wFormatTag = sh_audio->format = mmioFOURCC('a','g','s','m');
 	    wf->nChannels = 1;
 	    wf->nAvgBytesPerSec = 1650;
 	    wf->nBlockAlign = 33;


More information about the MPlayer-dev-eng mailing list