changeset 12657:9b8d635d53cc

bigendian fix
author alex
date Fri, 25 Jun 2004 17:05:35 +0000
parents ecc8c794f000
children 386db51a7e41
files postproc/yuv2rgb.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/postproc/yuv2rgb.c	Fri Jun 25 17:03:59 2004 +0000
+++ b/postproc/yuv2rgb.c	Fri Jun 25 17:05:35 2004 +0000
@@ -642,7 +642,7 @@
 
 int yuv2rgb_c_init_tables (SwsContext *c, const int inv_table[4], int fullRange, int brightness, int contrast, int saturation)
 {  
-    const int isRgb = IMGFMT_IS_RGB(c->dstFormat);
+    const int isRgb = IMGFMT_IS_BGR(c->dstFormat);
     const int bpp = isRgb?IMGFMT_RGB_DEPTH(c->dstFormat):IMGFMT_BGR_DEPTH(c->dstFormat);
     int i;
     uint8_t table_Y[1024];