diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-30 19:04:02 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-30 19:04:02 +0000 |
commit | 54c584a287ae5c26c75dca10a1d98a4719800b04 (patch) | |
tree | 7ca9eb072d7e33f8c27fa9e54d70d7b5da1c1905 /postproc | |
parent | d18df8d808d613752750f1eccec0a988e6786f9f (diff) |
fixing rgb24tobgr32
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6615 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc')
-rw-r--r-- | postproc/rgb2rgb.c | 3 |
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]; |