aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dwt.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-02-05 02:08:03 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-02-05 02:08:03 +0100
commit7e850f1cd053066bf06e772ca79ad95c99d9b6b3 (patch)
tree8b38fb509c3e08feda1ac91eef1ec50946def7b6 /libavcodec/dwt.c
parent2453ca4931f322a2aaaf79dbae9bfa1a845f0228 (diff)
downloadffmpeg-7e850f1cd053066bf06e772ca79ad95c99d9b6b3.tar.gz
dwt: fix about a dozen "warning: assignment from incompatible pointer type"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dwt.c')
-rw-r--r--libavcodec/dwt.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/libavcodec/dwt.c b/libavcodec/dwt.c
index b2b1845b9a..4b9cfd4ecc 100644
--- a/libavcodec/dwt.c
+++ b/libavcodec/dwt.c
@@ -1300,29 +1300,29 @@ int ff_spatial_idwt_init2(DWTContext *d, IDWTELEM *buffer, int width, int height
switch (type) {
case DWT_DIRAC_DD9_7:
d->spatial_compose = spatial_compose_dd97i_dy;
- d->vertical_compose_l0 = vertical_compose53iL0;
- d->vertical_compose_h0 = vertical_compose_dd97iH0;
+ d->vertical_compose_l0 = (void*)vertical_compose53iL0;
+ d->vertical_compose_h0 = (void*)vertical_compose_dd97iH0;
d->horizontal_compose = horizontal_compose_dd97i;
d->support = 7;
break;
case DWT_DIRAC_LEGALL5_3:
d->spatial_compose = spatial_compose_dirac53i_dy;
- d->vertical_compose_l0 = vertical_compose53iL0;
- d->vertical_compose_h0 = vertical_compose_dirac53iH0;
+ d->vertical_compose_l0 = (void*)vertical_compose53iL0;
+ d->vertical_compose_h0 = (void*)vertical_compose_dirac53iH0;
d->horizontal_compose = horizontal_compose_dirac53i;
d->support = 3;
break;
case DWT_DIRAC_DD13_7:
d->spatial_compose = spatial_compose_dd137i_dy;
- d->vertical_compose_l0 = vertical_compose_dd137iL0;
- d->vertical_compose_h0 = vertical_compose_dd97iH0;
+ d->vertical_compose_l0 = (void*)vertical_compose_dd137iL0;
+ d->vertical_compose_h0 = (void*)vertical_compose_dd97iH0;
d->horizontal_compose = horizontal_compose_dd137i;
d->support = 7;
break;
case DWT_DIRAC_HAAR0:
case DWT_DIRAC_HAAR1:
d->spatial_compose = spatial_compose_haari_dy;
- d->vertical_compose = vertical_compose_haar;
+ d->vertical_compose = (void*)vertical_compose_haar;
if (type == DWT_DIRAC_HAAR0)
d->horizontal_compose = horizontal_compose_haar0i;
else
@@ -1331,16 +1331,16 @@ int ff_spatial_idwt_init2(DWTContext *d, IDWTELEM *buffer, int width, int height
break;
case DWT_DIRAC_FIDELITY:
d->spatial_compose = spatial_compose_fidelity;
- d->vertical_compose_l0 = vertical_compose_fidelityiL0;
- d->vertical_compose_h0 = vertical_compose_fidelityiH0;
+ d->vertical_compose_l0 = (void*)vertical_compose_fidelityiL0;
+ d->vertical_compose_h0 = (void*)vertical_compose_fidelityiH0;
d->horizontal_compose = horizontal_compose_fidelityi;
break;
case DWT_DIRAC_DAUB9_7:
d->spatial_compose = spatial_compose_daub97i_dy;
- d->vertical_compose_l0 = vertical_compose_daub97iL0;
- d->vertical_compose_h0 = vertical_compose_daub97iH0;
- d->vertical_compose_l1 = vertical_compose_daub97iL1;
- d->vertical_compose_h1 = vertical_compose_daub97iH1;
+ d->vertical_compose_l0 = (void*)vertical_compose_daub97iL0;
+ d->vertical_compose_h0 = (void*)vertical_compose_daub97iH0;
+ d->vertical_compose_l1 = (void*)vertical_compose_daub97iL1;
+ d->vertical_compose_h1 = (void*)vertical_compose_daub97iH1;
d->horizontal_compose = horizontal_compose_daub97i;
d->support = 5;
break;