[Mplayer-cvslog] CVS: main/libmpdemux demux_ogg.c,1.9,1.10

Arpi of Ize arpi at mplayerhq.hu
Tue Jul 30 20:14:04 CEST 2002


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv21196

Modified Files:
	demux_ogg.c 
Log Message:
ogm audio format id is in hex, not dec
patch by Moritz Bunkus <moritz at bunkus.org>


Index: demux_ogg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_ogg.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- demux_ogg.c	23 May 2002 09:47:07 -0000	1.9
+++ demux_ogg.c	30 Jul 2002 18:14:02 -0000	1.10
@@ -499,7 +499,7 @@
 	buffer[4] = '\0';
 	sh_a = new_sh_audio(demuxer,ogg_d->num_sub);
 	sh_a->wf = (WAVEFORMATEX*)calloc(1,sizeof(WAVEFORMATEX)+extra_size);
-	sh_a->format =  sh_a->wf->wFormatTag = atoi(buffer);
+	sh_a->format =  sh_a->wf->wFormatTag = strtol(buffer, NULL, 16);
 	sh_a->channels = sh_a->wf->nChannels = st->sh.audio.channels;
 	sh_a->samplerate = sh_a->wf->nSamplesPerSec = st->samples_per_unit;
 	sh_a->wf->nAvgBytesPerSec = st->sh.audio.avgbytespersec;




More information about the MPlayer-cvslog mailing list