Remove useless casts of malloc return value.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29537 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2009-08-19 08:18:53 +00:00
parent 67636ed48b
commit 78fb0e7f16
1 changed files with 3 additions and 3 deletions

View File

@ -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;