diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-08-19 08:18:53 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-08-19 08:18:53 +0000 |
commit | 7b67bd92f4c4081bb8cf015ca634d2333f578403 (patch) | |
tree | 808921b96f501a217f89cf896edeca3350b2bb51 | |
parent | 386eaeb43fb6b750a9345e1945eb7ffc5df35c15 (diff) | |
download | ffmpeg-7b67bd92f4c4081bb8cf015ca634d2333f578403.tar.gz |
Remove useless casts of malloc return value.
Originally committed as revision 29537 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
-rw-r--r-- | libswscale/swscale-example.c | 6 |
1 files 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; |