Mercurial > mplayer.hg
comparison libswscale/rgb2rgb_template.c @ 29148:e949de41d25a
Remove 2 useless += at the end of rgb16to15(), found by CSA.
author | michael |
---|---|
date | Sat, 18 Apr 2009 22:27:36 +0000 |
parents | d50adcfcf99c |
children | 2d985cc879c9 |
comparison
equal
deleted
inserted
replaced
29147:0ee386008a40 | 29148:e949de41d25a |
---|---|
321 } | 321 } |
322 if (s < end) | 322 if (s < end) |
323 { | 323 { |
324 register uint16_t x= *((const uint16_t*)s); | 324 register uint16_t x= *((const uint16_t*)s); |
325 *((uint16_t *)d) = ((x>>1)&0x7FE0) | (x&0x001F); | 325 *((uint16_t *)d) = ((x>>1)&0x7FE0) | (x&0x001F); |
326 s+=2; | |
327 d+=2; | |
328 } | 326 } |
329 } | 327 } |
330 | 328 |
331 static inline void RENAME(rgb32to16)(const uint8_t *src, uint8_t *dst, long src_size) | 329 static inline void RENAME(rgb32to16)(const uint8_t *src, uint8_t *dst, long src_size) |
332 { | 330 { |