changeset 33449:578a69bbba40

Add casts to avoid compiler warning.
author reimar
date Wed, 01 Jun 2011 19:15:48 +0000
parents 5e2569e52969
children c4287381e2ea
files libmpcodecs/vf_pp7.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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++){