diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c
index 214a654a04b6305e5a3035b174c9722a0562ceb3..b6da294c858c671280568bc81cab5e6f9c1be2cc 100644
--- a/libpostproc/postprocess.c
+++ b/libpostproc/postprocess.c
@@ -953,8 +953,8 @@ void  pp_postprocess(const uint8_t * src[3], const int srcStride[3],
 {
     int mbWidth = (width+15)>>4;
     int mbHeight= (height+15)>>4;
-    PPMode *mode = (PPMode*)vm;
-    PPContext *c = (PPContext*)vc;
+    PPMode *mode = vm;
+    PPContext *c = vc;
     int minStride= FFMAX(FFABS(srcStride[0]), FFABS(dstStride[0]));
     int absQPStride = FFABS(QPStride);