projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0598bcb
)
fixing rgb24tobgr32
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 30 Jun 2002 19:04:02 +0000
(19:04 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 30 Jun 2002 19:04:02 +0000
(19:04 +0000)
Originally committed as revision 6615 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
postproc/rgb2rgb.c
patch
|
blob
|
history
diff --git
a/postproc/rgb2rgb.c
b/postproc/rgb2rgb.c
index
995f888
..
7ab86e1
100644
(file)
--- 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];