fixing rgb24tobgr32

Originally committed as revision 6615 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
This commit is contained in:
Michael Niedermayer 2002-06-30 19:04:02 +00:00
parent 0598bcbb5f
commit a1ce46cf52

View File

@ -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)
{
unsigned i;
unsigned num_pixels = src_size >> 2;
for(i=0; i<num_pixels; i++)
for(i=0; 3*i<src_size; i++)
{
dst[4*i + 0] = src[3*i + 2];
dst[4*i + 1] = src[3*i + 1];