[FFmpeg-cvslog] r29537 - trunk/libswscale/swscale-example.c

reimar subversion
Wed Aug 19 10:18:53 CEST 2009


Author: reimar
Date: Wed Aug 19 10:18:53 2009
New Revision: 29537

Log:
Remove useless casts of malloc return value.

Modified:
   trunk/libswscale/swscale-example.c

Modified: trunk/libswscale/swscale-example.c
==============================================================================
--- trunk/libswscale/swscale-example.c	Wed Aug 19 03:33:17 2009	(r29536)
+++ trunk/libswscale/swscale-example.c	Wed Aug 19 10:18:53 2009	(r29537)
@@ -100,9 +100,9 @@ static int doTest(uint8_t *ref[4], int r
         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;



More information about the ffmpeg-cvslog mailing list