summaryrefslogtreecommitdiff
path: root/apps/codecs/libtremor/vorbisfile.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2010-12-04 12:59:37 +0000
committerNils Wallménius <nils@rockbox.org>2010-12-04 12:59:37 +0000
commit911f2a7dac59cab16f6c47420e2d1e12e8b60b70 (patch)
treee48f2190ad02fb72228eb2de90b45c65fc1d7897 /apps/codecs/libtremor/vorbisfile.c
parent6367b19c7bcaae0da3c080be42b1d9a19727da00 (diff)
downloadrockbox-911f2a7dac59cab16f6c47420e2d1e12e8b60b70.tar.gz
rockbox-911f2a7dac59cab16f6c47420e2d1e12e8b60b70.zip
libtremor: merge upstream revision 17374 and some inline/icode tweaks to maintain speed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28732 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libtremor/vorbisfile.c')
-rw-r--r--apps/codecs/libtremor/vorbisfile.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/codecs/libtremor/vorbisfile.c b/apps/codecs/libtremor/vorbisfile.c
index 1e0336603c..50a57affbd 100644
--- a/apps/codecs/libtremor/vorbisfile.c
+++ b/apps/codecs/libtremor/vorbisfile.c
@@ -717,13 +717,13 @@ STATICIRAM_NOT_MDCT int _fetch_and_process_packet(OggVorbis_File *vf,
717 if(result>0){ 717 if(result>0){
718 /* got a packet. process it */ 718 /* got a packet. process it */
719 granulepos=op.granulepos; 719 granulepos=op.granulepos;
720 if(!vorbis_synthesis(&vf->vb,&op,1)){ /* lazy check for lazy 720 if(!vorbis_synthesis(&vf->vb,&op)){ /* lazy check for lazy
721 header handling. The 721 header handling. The
722 header packets aren't 722 header packets aren't
723 audio, so if/when we 723 audio, so if/when we
724 submit them, 724 submit them,
725 vorbis_synthesis will 725 vorbis_synthesis will
726 reject them */ 726 reject them */
727 727
728 /* suck in the synthesis data and track bitrate */ 728 /* suck in the synthesis data and track bitrate */
729 { 729 {
@@ -1444,9 +1444,9 @@ int ov_pcm_seek(OggVorbis_File *vf,ogg_int64_t pos){
1444 1444
1445 /* remove the packet from packet queue and track its granulepos */ 1445 /* remove the packet from packet queue and track its granulepos */
1446 ogg_stream_packetout(vf->os,NULL); 1446 ogg_stream_packetout(vf->os,NULL);
1447 vorbis_synthesis(&vf->vb,&op,0); /* set up a vb with 1447 vorbis_synthesis_trackonly(&vf->vb,&op); /* set up a vb with
1448 only tracking, no 1448 only tracking, no
1449 pcm_decode */ 1449 pcm_decode */
1450 vorbis_synthesis_blockin(&vf->vd,&vf->vb); 1450 vorbis_synthesis_blockin(&vf->vd,&vf->vb);
1451 1451
1452 /* end of logical stream case is hard, especially with exact 1452 /* end of logical stream case is hard, especially with exact