summaryrefslogtreecommitdiff
path: root/postproc
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-06-30 19:04:02 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-06-30 19:04:02 +0000
commita1ce46cf529e0acd380a67661d6bc97a06e5809f (patch)
treec30df3f0a16b5aa5098ba22434e7adced5d87fa9 /postproc
parent0598bcbb5fa2f410d9ac538d187f1ba601d44181 (diff)
fixing rgb24tobgr32
Originally committed as revision 6615 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc')
-rw-r--r--postproc/rgb2rgb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/postproc/rgb2rgb.c b/postproc/rgb2rgb.c
index 995f888b87..7ab86e1804 100644
--- a/postproc/rgb2rgb.c
+++ b/postproc/rgb2rgb.c
@@ -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];