diff options
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/vf_pp7.c | 4 | ||||
-rw-r--r-- | libmpcodecs/vf_yadif.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libmpcodecs/vf_pp7.c b/libmpcodecs/vf_pp7.c index 58f3e3ef06..1c0274d24f 100644 --- a/libmpcodecs/vf_pp7.c +++ b/libmpcodecs/vf_pp7.c @@ -288,8 +288,8 @@ static void filter(struct vf_priv_s *p, uint8_t *dst, uint8_t *src, int dst_stri int x, y; const int stride= is_luma ? p->temp_stride : ((width+16+15)&(~15)); uint8_t *p_src= p->src + 8*stride; - DCTELEM *block= p->src; - DCTELEM *temp= p->src + 32; + DCTELEM *block= (DCTELEM *)p->src; + DCTELEM *temp= (DCTELEM *)(p->src + 32); if (!src || !dst) return; // HACK avoid crash for Y8 colourspace for(y=0; y<height; y++){ diff --git a/libmpcodecs/vf_yadif.c b/libmpcodecs/vf_yadif.c index 2b2c180405..a5bd542ab5 100644 --- a/libmpcodecs/vf_yadif.c +++ b/libmpcodecs/vf_yadif.c @@ -376,7 +376,7 @@ static int config(struct vf_instance *vf, vf->priv->stride[i]= w; for(j=0; j<3; j++) - vf->priv->ref[j][i]= malloc(w*h*sizeof(uint8_t))+3*w; + vf->priv->ref[j][i]= (char *)malloc(w*h*sizeof(uint8_t))+3*w; } return vf_next_config(vf,width,height,d_width,d_height,flags,outfmt); |