diff options
Diffstat (limited to 'apps/codecs/libtremor/synthesis.c')
-rw-r--r-- | apps/codecs/libtremor/synthesis.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/codecs/libtremor/synthesis.c b/apps/codecs/libtremor/synthesis.c index 69180b7acf..c47f381592 100644 --- a/apps/codecs/libtremor/synthesis.c +++ b/apps/codecs/libtremor/synthesis.c | |||
@@ -37,7 +37,7 @@ static inline int _vorbis_synthesis1(vorbis_block *vb,ogg_packet *op,int decodep | |||
37 | 37 | ||
38 | /* first things first. Make sure decode is ready */ | 38 | /* first things first. Make sure decode is ready */ |
39 | _vorbis_block_ripcord(vb); | 39 | _vorbis_block_ripcord(vb); |
40 | oggpack_readinit(opb,op->packet); | 40 | oggpack_readinit(opb,op->packet,op->bytes); |
41 | 41 | ||
42 | /* Check the packet type */ | 42 | /* Check the packet type */ |
43 | if(oggpack_read(opb,1)!=0){ | 43 | if(oggpack_read(opb,1)!=0){ |
@@ -102,6 +102,8 @@ int vorbis_synthesis(vorbis_block *vb,ogg_packet *op){ | |||
102 | return _vorbis_synthesis1(vb,op,1); | 102 | return _vorbis_synthesis1(vb,op,1); |
103 | } | 103 | } |
104 | 104 | ||
105 | /* used to track pcm position without actually performing decode. | ||
106 | Useful for sequential 'fast forward' */ | ||
105 | int vorbis_synthesis_trackonly(vorbis_block *vb,ogg_packet *op){ | 107 | int vorbis_synthesis_trackonly(vorbis_block *vb,ogg_packet *op){ |
106 | return _vorbis_synthesis1(vb,op,0); | 108 | return _vorbis_synthesis1(vb,op,0); |
107 | } | 109 | } |
@@ -111,7 +113,7 @@ long vorbis_packet_blocksize(vorbis_info *vi,ogg_packet *op){ | |||
111 | oggpack_buffer opb; | 113 | oggpack_buffer opb; |
112 | int mode; | 114 | int mode; |
113 | 115 | ||
114 | oggpack_readinit(&opb,op->packet); | 116 | oggpack_readinit(&opb,op->packet,op->bytes); |
115 | 117 | ||
116 | /* Check the packet type */ | 118 | /* Check the packet type */ |
117 | if(oggpack_read(&opb,1)!=0){ | 119 | if(oggpack_read(&opb,1)!=0){ |