correct C init tables

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11692 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2003-12-27 19:54:59 +00:00
parent a5bd70e04f
commit c392464d38
1 changed files with 2 additions and 2 deletions

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) 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 = IMGFMT_IS_RGB(c->dstFormat);
const int isRgb= (c->dstFormat>>24) != 'R'; const int bpp = isRgb?IMGFMT_RGB_DEPTH(c->dstFormat):IMGFMT_BGR_DEPTH(c->dstFormat);
int i; int i;
uint8_t table_Y[1024]; uint8_t table_Y[1024];
uint32_t *table_32 = 0; uint32_t *table_32 = 0;