Mercurial > mplayer.hg
changeset 6614:49eac73d0e07
fixing rgb24tobgr32
author | michael |
---|---|
date | Sun, 30 Jun 2002 19:04:02 +0000 |
parents | 5cf616a755ac |
children | ab152b72e359 |
files | postproc/rgb2rgb.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/postproc/rgb2rgb.c Sun Jun 30 15:17:36 2002 +0000 +++ b/postproc/rgb2rgb.c Sun Jun 30 19:04:02 2002 +0000 @@ -446,8 +446,7 @@ 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];