# HG changeset patch # User reimar # Date 1390049965 0 # Node ID 2545bbe7d845ae8d3939b9373cb36a94799cf304 # Parent 13e0edb7a23d0972b49a415c6edc7d40aae56609 vo_bl: remove pointless casts. diff -r 13e0edb7a23d -r 2545bbe7d845 libvo/vo_bl.c --- a/libvo/vo_bl.c Sat Jan 18 12:53:54 2014 +0000 +++ b/libvo/vo_bl.c Sat Jan 18 12:59:25 2014 +0000 @@ -253,7 +253,7 @@ 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 @@ 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;