summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Terriberry <tterribe@xiph.org>2010-08-31 18:37:07 +0000
committerTim Terriberry <tterribe@xiph.org>2010-08-31 18:37:07 +0000
commitef366a9dcf35b1ffc3e66f810868d9ae1ad4ab7b (patch)
treeeeee2be594be765908332861ce204a7c1cd4e0bb
parente7b69e5e216132cc83b2765ea8399a8b3db430ff (diff)
downloadtremor-ef366a9dcf35b1ffc3e66f810868d9ae1ad4ab7b.tar.gz
Sync up with lowmem-branch's vorbisfile implementation.
git-svn-id: https://svn.xiph.org/branches/lowmem-no-byte/Tremor@17373 0101bb08-14d6-0310-b084-bc0e0c8e3800
-rw-r--r--vorbisfile.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/vorbisfile.c b/vorbisfile.c
index 31ef4a3..bcf4b20 100644
--- a/vorbisfile.c
+++ b/vorbisfile.c
@@ -69,7 +69,7 @@
static long _get_data(OggVorbis_File *vf){
errno=0;
if(vf->datasource){
- char *buffer=ogg_sync_bufferin(vf->oy,CHUNKSIZE);
+ unsigned char *buffer=ogg_sync_bufferin(vf->oy,CHUNKSIZE);
long bytes=(vf->callbacks.read_func)(buffer,1,CHUNKSIZE,vf->datasource);
if(bytes>0)ogg_sync_wrote(vf->oy,bytes);
if(bytes==0 && errno)return -1;
@@ -716,7 +716,7 @@ static int _ov_open1(void *f,OggVorbis_File *vf,char *initial,
previously read data (as we may be reading from a non-seekable
stream) */
if(initial){
- char *buffer=ogg_sync_bufferin(vf->oy,ibytes);
+ unsigned char *buffer=ogg_sync_bufferin(vf->oy,ibytes);
memcpy(buffer,initial,ibytes);
ogg_sync_wrote(vf->oy,ibytes);
}
@@ -1476,7 +1476,7 @@ ogg_int64_t ov_pcm_tell(OggVorbis_File *vf){
/* return time offset (milliseconds) of next PCM sample to be read */
ogg_int64_t ov_time_tell(OggVorbis_File *vf){
- int link=0,ret;
+ int link=0;
ogg_int64_t pcm_total=0;
ogg_int64_t time_total=0;
@@ -1555,7 +1555,6 @@ vorbis_comment *ov_comment(OggVorbis_File *vf,int link){
*section) set to the logical bitstream number */
long ov_read(OggVorbis_File *vf,void *buffer,int bytes_req,int *bitstream){
- int i,j;
long samples;
long channels;