From aab5a4521c4034c218cbd72325b5d1946a3ec3c2 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 1 May 2012 20:20:21 +0200 Subject: swr: add and use function pointers for rematrix Signed-off-by: Michael Niedermayer --- libswresample/rematrix_template.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'libswresample/rematrix_template.c') diff --git a/libswresample/rematrix_template.c b/libswresample/rematrix_template.c index 862430e184..0b5123c1cb 100644 --- a/libswresample/rematrix_template.c +++ b/libswresample/rematrix_template.c @@ -19,20 +19,19 @@ */ -static void RENAME(sum2)(SAMPLE *out, const SAMPLE *in1, const SAMPLE *in2, COEFF coeff1, COEFF coeff2, int len){ +static void RENAME(sum2)(SAMPLE *out, const SAMPLE *in1, const SAMPLE *in2, COEFF *coeffp, int index1, int index2, int len){ int i; + COEFF coeff1 = coeffp[index1]; + COEFF coeff2 = coeffp[index2]; for(i=0; i