avcodec/wmalosslessdec: fix type for coeffs and lms_updates in cdlms struct
They should really be int16_t. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
b286ff69c0
commit
8f4358888f
@ -36,8 +36,8 @@ static int32_t scalarproduct_and_madd_int16_c(int16_t *v1, const int16_t *v2,
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int32_t scalarproduct_and_madd_int32_c(int32_t *v1, const int32_t *v2,
|
static int32_t scalarproduct_and_madd_int32_c(int16_t *v1, const int32_t *v2,
|
||||||
const int32_t *v3,
|
const int16_t *v3,
|
||||||
int order, int mul)
|
int order, int mul)
|
||||||
{
|
{
|
||||||
int res = 0;
|
int res = 0;
|
||||||
|
@ -37,9 +37,9 @@ typedef struct LLAudDSPContext {
|
|||||||
const int16_t *v3,
|
const int16_t *v3,
|
||||||
int len, int mul);
|
int len, int mul);
|
||||||
|
|
||||||
int32_t (*scalarproduct_and_madd_int32)(int32_t *v1 /* align 16 */,
|
int32_t (*scalarproduct_and_madd_int32)(int16_t *v1 /* align 16 */,
|
||||||
const int32_t *v2,
|
const int32_t *v2,
|
||||||
const int32_t *v3,
|
const int16_t *v3,
|
||||||
int len, int mul);
|
int len, int mul);
|
||||||
} LLAudDSPContext;
|
} LLAudDSPContext;
|
||||||
|
|
||||||
|
@ -147,9 +147,9 @@ typedef struct WmallDecodeCtx {
|
|||||||
int scaling;
|
int scaling;
|
||||||
int coefsend;
|
int coefsend;
|
||||||
int bitsend;
|
int bitsend;
|
||||||
DECLARE_ALIGNED(16, int32_t, coefs)[MAX_ORDER + WMALL_COEFF_PAD_SIZE/sizeof(int16_t)];
|
DECLARE_ALIGNED(16, int16_t, coefs)[MAX_ORDER + WMALL_COEFF_PAD_SIZE/sizeof(int16_t)];
|
||||||
DECLARE_ALIGNED(16, int32_t, lms_prevvalues)[MAX_ORDER * 2 + WMALL_COEFF_PAD_SIZE/sizeof(int16_t)];
|
DECLARE_ALIGNED(16, int32_t, lms_prevvalues)[MAX_ORDER * 2 + WMALL_COEFF_PAD_SIZE/sizeof(int16_t)];
|
||||||
DECLARE_ALIGNED(16, int32_t, lms_updates)[MAX_ORDER * 2 + WMALL_COEFF_PAD_SIZE/sizeof(int16_t)];
|
DECLARE_ALIGNED(16, int16_t, lms_updates)[MAX_ORDER * 2 + WMALL_COEFF_PAD_SIZE/sizeof(int16_t)];
|
||||||
int recent;
|
int recent;
|
||||||
} cdlms[WMALL_MAX_CHANNELS][9];
|
} cdlms[WMALL_MAX_CHANNELS][9];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user