From 78fb0e7f16dd8f5e8c90c587e0091be7f50b3e88 Mon Sep 17 00:00:00 2001 From: reimar Date: Wed, 19 Aug 2009 08:18:53 +0000 Subject: [PATCH] Remove useless casts of malloc return value. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29537 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libswscale/swscale-example.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libswscale/swscale-example.c b/libswscale/swscale-example.c index a3d9357a02..2b179bdc83 100644 --- a/libswscale/swscale-example.c +++ b/libswscale/swscale-example.c @@ -100,9 +100,9 @@ static int doTest(uint8_t *ref[4], int refStride[4], int w, int h, int srcFormat else dstStride[i]= dstW*4; - src[i]= (uint8_t*) malloc(srcStride[i]*srcH); - dst[i]= (uint8_t*) malloc(dstStride[i]*dstH); - out[i]= (uint8_t*) malloc(refStride[i]*h); + src[i]= malloc(srcStride[i]*srcH); + dst[i]= malloc(dstStride[i]*dstH); + out[i]= malloc(refStride[i]*h); if (!src[i] || !dst[i] || !out[i]) { perror("Malloc"); res = -1;