Mercurial > libavcodec.hg
changeset 10694:d17c26774897 libavcodec
Swap red and blue when decoding r210.
author | cehoyos |
---|---|
date | Fri, 18 Dec 2009 10:42:26 +0000 |
parents | 0aec5a890b83 |
children | fe81255af588 |
files | r210dec.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/r210dec.c Thu Dec 17 18:56:56 2009 +0000 +++ b/r210dec.c Fri Dec 18 10:42:26 2009 +0000 @@ -63,9 +63,9 @@ for (w = 0; w < avctx->width; w++) { uint32_t pixel = be2me_32(*src++); uint16_t r, g, b; - r = pixel << 6; + b = pixel << 6; g = (pixel >> 4) & 0xffc0; - b = (pixel >> 14) & 0xffc0; + r = (pixel >> 14) & 0xffc0; *dst++ = r | (r >> 10); *dst++ = g | (g >> 10); *dst++ = b | (b >> 10);