From 7125eb6381e57436db1c5a2d7c4e52091c37e95c Mon Sep 17 00:00:00 2001 From: Tim Terriberry Date: Tue, 31 Aug 2010 18:51:40 +0000 Subject: Remove the extra argument from vorbis_synthesis(). Add vorbis_synthesis_trackonly() instead, so that this part of the API works like mainline libvorbis now. git-svn-id: https://svn.xiph.org/trunk/Tremor@17374 0101bb08-14d6-0310-b084-bc0e0c8e3800 --- vorbisfile.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'vorbisfile.c') diff --git a/vorbisfile.c b/vorbisfile.c index a0967a4..f096a17 100644 --- a/vorbisfile.c +++ b/vorbisfile.c @@ -714,13 +714,13 @@ static int _fetch_and_process_packet(OggVorbis_File *vf, if(result>0){ /* got a packet. process it */ granulepos=op.granulepos; - if(!vorbis_synthesis(&vf->vb,&op,1)){ /* lazy check for lazy - header handling. The - header packets aren't - audio, so if/when we - submit them, - vorbis_synthesis will - reject them */ + if(!vorbis_synthesis(&vf->vb,&op)){ /* lazy check for lazy + header handling. The + header packets aren't + audio, so if/when we + submit them, + vorbis_synthesis will + reject them */ /* suck in the synthesis data and track bitrate */ { @@ -1580,9 +1580,9 @@ int ov_pcm_seek(OggVorbis_File *vf,ogg_int64_t pos){ /* remove the packet from packet queue and track its granulepos */ ogg_stream_packetout(vf->os,NULL); - vorbis_synthesis(&vf->vb,&op,0); /* set up a vb with - only tracking, no - pcm_decode */ + vorbis_synthesis_trackonly(&vf->vb,&op); /* set up a vb with + only tracking, no + pcm_decode */ vorbis_synthesis_blockin(&vf->vd,&vf->vb); /* end of logical stream case is hard, especially with exact -- cgit v1.2.1