# HG changeset patch # User reimar # Date 1266348996 0 # Node ID 5404e0c3acce758b868ab7a8f10f6bc23e45d07d # Parent 10b0a635293baa1f18d5adbd0160ce813fd30a39 Remove useless malloc casts. diff -r 10b0a635293b -r 5404e0c3acce libvo/vo_dxr3.c --- a/libvo/vo_dxr3.c Tue Feb 16 19:34:41 2010 +0000 +++ b/libvo/vo_dxr3.c Tue Feb 16 19:36:36 2010 +0000 @@ -458,13 +458,13 @@ 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 @@ { overlay_t *o; - o = (overlay_t *) malloc(sizeof(overlay_t)); + o = malloc(sizeof(overlay_t)); if(!o) return NULL;