[FFmpeg-cvslog] r20893 - trunk/libavcodec/r210dec.c

cehoyos subversion
Fri Dec 18 11:42:26 CET 2009


Author: cehoyos
Date: Fri Dec 18 11:42:26 2009
New Revision: 20893

Log:
Swap red and blue when decoding r210.

Modified:
   trunk/libavcodec/r210dec.c

Modified: trunk/libavcodec/r210dec.c
==============================================================================
--- trunk/libavcodec/r210dec.c	Fri Dec 18 07:03:12 2009	(r20892)
+++ trunk/libavcodec/r210dec.c	Fri Dec 18 11:42:26 2009	(r20893)
@@ -63,9 +63,9 @@ static int decode_frame(AVCodecContext *
         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);



More information about the ffmpeg-cvslog mailing list