summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-16 19:36:36 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-16 19:36:36 +0000
commit0dc08a811d455dbc1baf18056a8686bc6ba80586 (patch)
treeaf91297a859fe23df7937b0288cdb26ddd380690
parent091e2a43133f174c99af9596d10d9d11bc06cf03 (diff)
downloadmpv-0dc08a811d455dbc1baf18056a8686bc6ba80586.tar.bz2
mpv-0dc08a811d455dbc1baf18056a8686bc6ba80586.tar.xz
Remove useless malloc casts.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30602 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libvo/vo_dxr3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libvo/vo_dxr3.c b/libvo/vo_dxr3.c
index 05f55aa4f9..95ecae695e 100644
--- a/libvo/vo_dxr3.c
+++ b/libvo/vo_dxr3.c
@@ -458,13 +458,13 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_
mp_msg(MSGT_VO,MSGL_ERR, MSGTR_LIBVO_DXR3_OutOfMemory);
return -1;
}
- spued = (encodedata *) malloc(sizeof(encodedata));
+ spued = malloc(sizeof(encodedata));
if (spued == NULL) {
free( osdpicbuf );
mp_msg(MSGT_VO,MSGL_ERR, MSGTR_LIBVO_DXR3_OutOfMemory);
return -1;
}
- spubuf = (encodedata *) malloc(sizeof(encodedata));
+ spubuf = malloc(sizeof(encodedata));
if (spubuf == NULL) {
free( osdpicbuf );
free( spued );
@@ -949,7 +949,7 @@ static overlay_t *overlay_init(int dev)
{
overlay_t *o;
- o = (overlay_t *) malloc(sizeof(overlay_t));
+ o = malloc(sizeof(overlay_t));
if(!o)
return NULL;