shithub: opus-tools

Download patch

ref: 943a6e3d327737592bf17419cf3a768a69820b16
parent: 7be06818443073180eee3b569bea54cfb522edbe
author: Timothy B. Terriberry <tterribe@xiph.org>
date: Tue Feb 19 23:42:07 EST 2013

Make more FLAC reader functions static.

They weren't being used outside flac.c.

--- a/src/flac.c
+++ b/src/flac.c
@@ -56,7 +56,7 @@
 
 /*A version of strncasecmp() that is guaranteed to only ignore the case of
   ASCII characters.*/
-int flac_strncasecmp(const char *_a,const char *_b,int _n){
+static int flac_strncasecmp(const char *_a,const char *_b,int _n){
   int i;
   for(i=0;i<_n;i++){
     int a;
@@ -233,7 +233,7 @@
 }
 
 /*Dummy error callback (required by libFLAC).*/
-void error_callback(const FLAC__StreamDecoder *decoder,
+static void error_callback(const FLAC__StreamDecoder *decoder,
    FLAC__StreamDecoderErrorStatus status,void *client_data){
   (void)decoder;
   (void)status;
@@ -261,7 +261,7 @@
 }
 
 /*Read more data for the encoder.*/
-long flac_read(void *client_data,float *buffer,int samples){
+static long flac_read(void *client_data,float *buffer,int samples){
   flacfile *flac;
   int channels;
   float *block_buf;