From: Andre Noll Date: Sat, 17 Oct 2009 19:51:57 +0000 (+0200) Subject: pass only one arg to wma_init(). X-Git-Tag: v0.4.1~80 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=75f212dae337c38abca928b9a272c0a1d14bf504 pass only one arg to wma_init(). --- diff --git a/wmadec_filter.c b/wmadec_filter.c index 13ad99c4..c0d770d7 100644 --- a/wmadec_filter.c +++ b/wmadec_filter.c @@ -276,13 +276,15 @@ static void compute_scale_factor_band_sizes(struct private_wmadec_data *pwd, } } -static int wma_init(struct private_wmadec_data *pwd, int flags2, struct asf_header_info *ahi) +static int wma_init(struct private_wmadec_data *pwd) { int i; float bps1, high_freq; volatile float bps; int sample_rate1; int coef_vlc_table; + struct asf_header_info *ahi = &pwd->ahi; + int flags2 = ahi->flags2; if (ahi->sample_rate <= 0 || ahi->sample_rate > 50000 || ahi->channels <= 0 || ahi->channels > 8 @@ -474,7 +476,7 @@ static int wma_decode_init(char *initial_buf, int len, struct private_wmadec_dat pwd->use_bit_reservoir = pwd->ahi.flags2 & 0x0002; pwd->use_variable_block_len = pwd->ahi.flags2 & 0x0004; - ret = wma_init(pwd, pwd->ahi.flags2, &pwd->ahi); + ret = wma_init(pwd); if (ret < 0) return ret; /* init MDCT */