Mercurial > mplayer.hg
changeset 36503:2545bbe7d845
vo_bl: remove pointless casts.
author | reimar |
---|---|
date | Sat, 18 Jan 2014 12:59:25 +0000 |
parents | 13e0edb7a23d |
children | edc2020f7bf4 |
files | libvo/vo_bl.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;