Commit c01e59b3 authored by michael's avatar michael

fixing rgb24tobgr32


git-svn-id: file:///var/local/repositories/mplayer/trunk/postproc@6615 b3059339-0415-0410-9bf9-f77b7e298cf2
parent e22e1517
...@@ -446,8 +446,7 @@ void rgb32tobgr15(const uint8_t *src, uint8_t *dst, unsigned int src_size) ...@@ -446,8 +446,7 @@ void rgb32tobgr15(const uint8_t *src, uint8_t *dst, unsigned int src_size)
void rgb24tobgr32(const uint8_t *src, uint8_t *dst, unsigned int src_size) void rgb24tobgr32(const uint8_t *src, uint8_t *dst, unsigned int src_size)
{ {
unsigned i; unsigned i;
unsigned num_pixels = src_size >> 2; for(i=0; 3*i<src_size; i++)
for(i=0; i<num_pixels; i++)
{ {
dst[4*i + 0] = src[3*i + 2]; dst[4*i + 0] = src[3*i + 2];
dst[4*i + 1] = src[3*i + 1]; dst[4*i + 1] = src[3*i + 1];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment