mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 18:12:22 +00:00
ogm audio format id is in hex, not dec
patch by Moritz Bunkus <moritz@bunkus.org> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6851 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
03a8669f06
commit
db09e34cf8
@ -499,7 +499,7 @@ int demux_ogg_open(demuxer_t* demuxer) {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user