Mercurial > mplayer.hg
comparison sub/sub.c @ 32763:ce9c41d97bfd
Do not pointlessly cast the return value of memalign().
memalign() returns void*, which is compatible with any pointer in C.
author | diego |
---|---|
date | Fri, 04 Feb 2011 10:06:01 +0000 |
parents | 8fa2f43cb760 |
children | 8d137fb84699 |
comparison
equal
deleted
inserted
replaced
32762:5d1ad5720b32 | 32763:ce9c41d97bfd |
---|---|
155 len = obj->stride*(obj->bbox.y2-obj->bbox.y1); | 155 len = obj->stride*(obj->bbox.y2-obj->bbox.y1); |
156 if (obj->allocated<len) { | 156 if (obj->allocated<len) { |
157 obj->allocated = len; | 157 obj->allocated = len; |
158 free(obj->bitmap_buffer); | 158 free(obj->bitmap_buffer); |
159 free(obj->alpha_buffer); | 159 free(obj->alpha_buffer); |
160 obj->bitmap_buffer = (unsigned char *)memalign(16, len); | 160 obj->bitmap_buffer = memalign(16, len); |
161 obj->alpha_buffer = (unsigned char *)memalign(16, len); | 161 obj->alpha_buffer = memalign(16, len); |
162 } | 162 } |
163 memset(obj->bitmap_buffer, sub_bg_color, len); | 163 memset(obj->bitmap_buffer, sub_bg_color, len); |
164 memset(obj->alpha_buffer, sub_bg_alpha, len); | 164 memset(obj->alpha_buffer, sub_bg_alpha, len); |
165 } | 165 } |
166 | 166 |