[MPlayer-cvslog] r36599 - trunk/libvo/vo_bl.c

reimar subversion at mplayerhq.hu
Sat Jan 18 13:59:25 CET 2014


Author: reimar
Date: Sat Jan 18 13:59:25 2014
New Revision: 36599

Log:
vo_bl: remove pointless casts.

Modified:
   trunk/libvo/vo_bl.c

Modified: trunk/libvo/vo_bl.c
==============================================================================
--- trunk/libvo/vo_bl.c	Sat Jan 18 13:53:54 2014	(r36598)
+++ trunk/libvo/vo_bl.c	Sat Jan 18 13:59:25 2014	(r36599)
@@ -253,7 +253,7 @@ static int config(uint32_t width, uint32
 		bl_size = 12 + bl->width*bl->height*bl->channels;
 		ptr = realloc(bl_packet, 12 + bl->width*bl->height*3); /* space for header and image data */
 		if (ptr)
-			bl_packet = (bl_packet_t*)ptr;
+			bl_packet = ptr;
 		else {
 			mp_msg(MSGT_VO, MSGL_ERR, "bl: out of memory error\n");
 			goto err_out;
@@ -261,7 +261,7 @@ static int config(uint32_t width, uint32
 		image = ((unsigned char*)bl_packet + 12); /* pointer to image data */
 		ptr = realloc(tmp, bl->width*bl->height*3); /* space for image data only */
 		if (ptr)
-			tmp = (unsigned char*)ptr;
+			tmp = ptr;
 		else {
 			mp_msg(MSGT_VO, MSGL_ERR, "bl: out of memory error\n");
 			goto err_out;


More information about the MPlayer-cvslog mailing list