summaryrefslogtreecommitdiff
path: root/postproc/yuv2rgb.c
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2003-12-27 19:54:59 +0000
committerAlex Beregszaszi <alex@rtfs.hu>2003-12-27 19:54:59 +0000
commit2c293402b0df049d07cf75a09a475958102d7bdb (patch)
treefdc36e8147c106c256ce22f2d940e71b373931d5 /postproc/yuv2rgb.c
parent54fcf429cd6031896410b3d632da98070388f595 (diff)
correct C init tables
Originally committed as revision 11692 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc/yuv2rgb.c')
-rw-r--r--postproc/yuv2rgb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/postproc/yuv2rgb.c b/postproc/yuv2rgb.c
index 24295d014d..a35977975c 100644
--- a/postproc/yuv2rgb.c
+++ b/postproc/yuv2rgb.c
@@ -642,8 +642,8 @@ static int div_round (int dividend, int divisor)
int yuv2rgb_c_init_tables (SwsContext *c, const int inv_table[4], int fullRange, int brightness, int contrast, int saturation)
{
- const int bpp= c->dstFormat&0xFF;
- const int isRgb= (c->dstFormat>>24) != 'R';
+ const int isRgb = IMGFMT_IS_RGB(c->dstFormat);
+ const int bpp = isRgb?IMGFMT_RGB_DEPTH(c->dstFormat):IMGFMT_BGR_DEPTH(c->dstFormat);
int i;
uint8_t table_Y[1024];
uint32_t *table_32 = 0;