mirror of
https://github.com/mpv-player/mpv
synced 2024-11-18 21:16:10 +01:00
fixing rgb24tobgr32
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6615 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d18df8d808
commit
54c584a287
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user