OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
386eaeb
)
Remove useless casts of malloc return value.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Wed, 19 Aug 2009 08:18:53 +0000
(08:18 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Wed, 19 Aug 2009 08:18:53 +0000
(08:18 +0000)
Originally committed as revision 29537 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
libswscale/swscale-example.c
patch
|
blob
|
history
diff --git
a/libswscale/swscale-example.c
b/libswscale/swscale-example.c
index
a3d9357
..
2b179bd
100644
(file)
--- 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;