Mercurial > mplayer.hg
changeset 7396:cfb1bc3925eb
The granule position of pages contining Vorbis audio is in units of
PCM audio samples (per channel; a stereo stream's granule position does
no increment at twice the speed of a mono stream).
patch by Moritz Bunkus <moritz@bunkus.org>
author | arpi |
---|---|
date | Sat, 14 Sep 2002 23:21:22 +0000 |
parents | b82a3eb66d60 |
children | 379e379bd4f4 |
files | libmpdemux/demux_ogg.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_ogg.c Sat Sep 14 19:02:48 2002 +0000 +++ b/libmpdemux/demux_ogg.c Sat Sep 14 23:21:22 2002 +0000 @@ -529,7 +529,7 @@ if(extra_size > 0) memcpy(sh_a->wf+sizeof(WAVEFORMATEX),pack.packet+142,extra_size); - ogg_d->subs[ogg_d->num_sub].samplerate = sh_a->samplerate * sh_a->channels; + ogg_d->subs[ogg_d->num_sub].samplerate = sh_a->samplerate; // * sh_a->channels; n_audio++; mp_msg(MSGT_DEMUX,MSGL_V,"OGG stream %d is audio (old hdr)\n",ogg_d->num_sub); if(verbose) print_wave_header(sh_a->wf); @@ -580,7 +580,7 @@ if(extra_size) memcpy(sh_a->wf+sizeof(WAVEFORMATEX),st+1,extra_size); - ogg_d->subs[ogg_d->num_sub].samplerate = sh_a->samplerate * sh_a->channels; + ogg_d->subs[ogg_d->num_sub].samplerate = sh_a->samplerate; // * sh_a->channels; n_audio++; mp_msg(MSGT_DEMUX,MSGL_V,"OGG stream %d is audio (new hdr)\n",ogg_d->num_sub); if(verbose) print_wave_header(sh_a->wf);