diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-02-05 02:00:02 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-02-05 02:00:02 +0100 |
commit | 2453ca4931f322a2aaaf79dbae9bfa1a845f0228 (patch) | |
tree | cff343d6ef4634e30db4bd926e755deb928ac1a2 /libavcodec/dwt.c | |
parent | 861aa9e7c2357329f2b7a75af9cae4bd1011cfaa (diff) | |
download | ffmpeg-2453ca4931f322a2aaaf79dbae9bfa1a845f0228.tar.gz |
dwt: fix a dozen or so "warning: initialization from incompatible pointer type"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dwt.c')
-rw-r--r-- | libavcodec/dwt.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/libavcodec/dwt.c b/libavcodec/dwt.c index c27961084e..b2b1845b9a 100644 --- a/libavcodec/dwt.c +++ b/libavcodec/dwt.c @@ -1077,8 +1077,8 @@ static void vertical_compose_daub97iL1(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2, static void spatial_compose_dd97i_dy(DWTContext *d, int level, int width, int height, int stride) { - vertical_compose_3tap vertical_compose_l0 = d->vertical_compose_l0; - vertical_compose_5tap vertical_compose_h0 = d->vertical_compose_h0; + vertical_compose_3tap vertical_compose_l0 = (void*)d->vertical_compose_l0; + vertical_compose_5tap vertical_compose_h0 = (void*)d->vertical_compose_h0; DWTCompose *cs = d->cs + level; int i, y = cs->y; @@ -1101,8 +1101,8 @@ static void spatial_compose_dd97i_dy(DWTContext *d, int level, int width, int he static void spatial_compose_dirac53i_dy(DWTContext *d, int level, int width, int height, int stride) { - vertical_compose_3tap vertical_compose_l0 = d->vertical_compose_l0; - vertical_compose_3tap vertical_compose_h0 = d->vertical_compose_h0; + vertical_compose_3tap vertical_compose_l0 = (void*)d->vertical_compose_l0; + vertical_compose_3tap vertical_compose_h0 = (void*)d->vertical_compose_h0; DWTCompose *cs = d->cs + level; int y= cs->y; @@ -1124,8 +1124,8 @@ static void spatial_compose_dirac53i_dy(DWTContext *d, int level, int width, int static void spatial_compose_dd137i_dy(DWTContext *d, int level, int width, int height, int stride) { - vertical_compose_5tap vertical_compose_l0 = d->vertical_compose_l0; - vertical_compose_5tap vertical_compose_h0 = d->vertical_compose_h0; + vertical_compose_5tap vertical_compose_l0 = (void*)d->vertical_compose_l0; + vertical_compose_5tap vertical_compose_h0 = (void*)d->vertical_compose_h0; DWTCompose *cs = d->cs + level; int i, y = cs->y; @@ -1149,7 +1149,7 @@ static void spatial_compose_dd137i_dy(DWTContext *d, int level, int width, int h // haar makes the assumption that height is even (always true for dirac) static void spatial_compose_haari_dy(DWTContext *d, int level, int width, int height, int stride) { - vertical_compose_2tap vertical_compose = d->vertical_compose; + vertical_compose_2tap vertical_compose = (void*)d->vertical_compose; int y = d->cs[level].y; IDWTELEM *b0 = d->buffer + (y-1)*stride; IDWTELEM *b1 = d->buffer + (y )*stride; @@ -1165,8 +1165,8 @@ static void spatial_compose_haari_dy(DWTContext *d, int level, int width, int he // Fortunately, this filter isn't used in practice. static void spatial_compose_fidelity(DWTContext *d, int level, int width, int height, int stride) { - vertical_compose_9tap vertical_compose_l0 = d->vertical_compose_l0; - vertical_compose_9tap vertical_compose_h0 = d->vertical_compose_h0; + vertical_compose_9tap vertical_compose_l0 = (void*)d->vertical_compose_l0; + vertical_compose_9tap vertical_compose_h0 = (void*)d->vertical_compose_h0; int i, y; IDWTELEM *b[8]; @@ -1190,10 +1190,10 @@ static void spatial_compose_fidelity(DWTContext *d, int level, int width, int he static void spatial_compose_daub97i_dy(DWTContext *d, int level, int width, int height, int stride) { - vertical_compose_3tap vertical_compose_l0 = d->vertical_compose_l0; - vertical_compose_3tap vertical_compose_h0 = d->vertical_compose_h0; - vertical_compose_3tap vertical_compose_l1 = d->vertical_compose_l1; - vertical_compose_3tap vertical_compose_h1 = d->vertical_compose_h1; + vertical_compose_3tap vertical_compose_l0 = (void*)d->vertical_compose_l0; + vertical_compose_3tap vertical_compose_h0 = (void*)d->vertical_compose_h0; + vertical_compose_3tap vertical_compose_l1 = (void*)d->vertical_compose_l1; + vertical_compose_3tap vertical_compose_h1 = (void*)d->vertical_compose_h1; DWTCompose *cs = d->cs + level; int i, y = cs->y; |