From 6e9cbdc10448203e7c8b2de41447442fcc9f7bae Mon Sep 17 00:00:00 2001 From: diego Date: Wed, 13 May 2009 02:58:57 +0000 Subject: whitespace cosmetics: Remove all trailing whitespace. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libaf/af_lavcresample.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'libaf/af_lavcresample.c') diff --git a/libaf/af_lavcresample.c b/libaf/af_lavcresample.c index 2dbdf786b9..49a284bba6 100644 --- a/libaf/af_lavcresample.c +++ b/libaf/af_lavcresample.c @@ -34,7 +34,7 @@ typedef struct af_resample_s{ int16_t *in[AF_NCH]; int in_alloc; int index; - + int filter_length; int linear; int phase_shift; @@ -45,7 +45,7 @@ typedef struct af_resample_s{ // Initialization and runtime control static int control(struct af_instance_s* af, int cmd, void* arg) { - af_resample_t* s = (af_resample_t*)af->setup; + af_resample_t* s = (af_resample_t*)af->setup; af_data_t *data= (af_data_t*)arg; int out_rate, test_output_res; // helpers for checking input format @@ -83,7 +83,7 @@ static int control(struct af_instance_s* af, int cmd, void* arg) return AF_UNKNOWN; } -// Deallocate memory +// Deallocate memory static void uninit(struct af_instance_s* af) { if(af->data) @@ -101,7 +101,7 @@ static void uninit(struct af_instance_s* af) // Filter data through filter static af_data_t* play(struct af_instance_s* af, af_data_t* data) -{ +{ af_resample_t *s = af->setup; int i, j, consumed, ret; int16_t *in = (int16_t*)data->audio; @@ -110,14 +110,14 @@ static af_data_t* play(struct af_instance_s* af, af_data_t* data) int in_len = data->len/(2*chans); int out_len = in_len * af->mul + 10; int16_t tmp[AF_NCH][out_len]; - + if(AF_OK != RESIZE_LOCAL_BUFFER(af,data)) return NULL; - + out= (int16_t*)af->data->audio; - + out_len= min(out_len, af->data->len/(2*chans)); - + if(s->in_alloc < in_len + s->index){ s->in_alloc= in_len + s->index; for(i=0; iavrctx, tmp[i], s->in[i], &consumed, in_len, out_len, i+1 == chans); } out_len= ret; - + s->index= in_len - consumed; for(i=0; iin[i], s->in[i] + consumed, s->index*sizeof(int16_t)); -- cgit v1.2.3