Mercurial > mplayer.hg
diff libmpcodecs/vf_pp7.c @ 33449:578a69bbba40
Add casts to avoid compiler warning.
author | reimar |
---|---|
date | Wed, 01 Jun 2011 19:15:48 +0000 |
parents | d6bc33320ae0 |
children | 68db224c2275 |
line wrap: on
line diff
--- a/libmpcodecs/vf_pp7.c Wed Jun 01 19:07:30 2011 +0000 +++ b/libmpcodecs/vf_pp7.c Wed Jun 01 19:15:48 2011 +0000 @@ -288,8 +288,8 @@ 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++){