changeset 6850:5abb9367b128

ogm audio format id is in hex, not dec patch by Moritz Bunkus <moritz@bunkus.org>
author arpi
date Tue, 30 Jul 2002 18:14:02 +0000
parents 91d6e1365427
children cdcaebfd6e98
files libmpdemux/demux_ogg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ogg.c	Tue Jul 30 18:08:06 2002 +0000
+++ b/libmpdemux/demux_ogg.c	Tue Jul 30 18:14:02 2002 +0000
@@ -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;