Browse Source

correct C init tables

Originally committed as revision 11692 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
tags/v0.5
Alex Beregszaszi 22 years ago
parent
commit
2c293402b0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      postproc/yuv2rgb.c

+ 2
- 2
postproc/yuv2rgb.c View File

@@ -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;


Loading…
Cancel
Save