changeset 29495:735f494d56e0

Remove useless casts of malloc return value.
author reimar
date Wed, 19 Aug 2009 08:18:53 +0000
parents 86786d090e11
children a307b7206944
files libswscale/swscale-example.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale-example.c	Wed Aug 19 01:33:17 2009 +0000
+++ b/libswscale/swscale-example.c	Wed Aug 19 08:18:53 2009 +0000
@@ -100,9 +100,9 @@
         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;