summaryrefslogtreecommitdiff
path: root/apps/codecs
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs')
-rw-r--r--apps/codecs/Tremor/vorbisfile.c2
-rw-r--r--apps/codecs/vorbis.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/apps/codecs/Tremor/vorbisfile.c b/apps/codecs/Tremor/vorbisfile.c
index 54e36d29af..4d36ab3b48 100644
--- a/apps/codecs/Tremor/vorbisfile.c
+++ b/apps/codecs/Tremor/vorbisfile.c
@@ -61,12 +61,10 @@
61 61
62/* read a little more data from the file/pipe into the ogg_sync framer */ 62/* read a little more data from the file/pipe into the ogg_sync framer */
63static long _get_data(OggVorbis_File *vf){ 63static long _get_data(OggVorbis_File *vf){
64 errno=0;
65 if(vf->datasource){ 64 if(vf->datasource){
66 char *buffer=(char *)ogg_sync_bufferin(vf->oy,CHUNKSIZE); 65 char *buffer=(char *)ogg_sync_bufferin(vf->oy,CHUNKSIZE);
67 long bytes=(vf->callbacks.read_func)(buffer,1,CHUNKSIZE,vf->datasource); 66 long bytes=(vf->callbacks.read_func)(buffer,1,CHUNKSIZE,vf->datasource);
68 if(bytes>0)ogg_sync_wrote(vf->oy,bytes); 67 if(bytes>0)ogg_sync_wrote(vf->oy,bytes);
69 if(bytes==0 && errno)return(-1);
70 return(bytes); 68 return(bytes);
71 }else 69 }else
72 return(0); 70 return(0);
diff --git a/apps/codecs/vorbis.c b/apps/codecs/vorbis.c
index e77ecada0c..fb50859b8f 100644
--- a/apps/codecs/vorbis.c
+++ b/apps/codecs/vorbis.c
@@ -27,8 +27,6 @@ static struct codec_api *rb;
27 27
28/* Some standard functions and variables needed by Tremor */ 28/* Some standard functions and variables needed by Tremor */
29 29
30int errno;
31
32size_t read_handler(void *ptr, size_t size, size_t nmemb, void *datasource) 30size_t read_handler(void *ptr, size_t size, size_t nmemb, void *datasource)
33{ 31{
34 (void)datasource; 32 (void)datasource;