comparison libswscale/swscale.c @ 27699:31a477d77c57

Do not set src[1] to the palette, it is now in the context
author vitor
date Wed, 08 Oct 2008 17:48:23 +0000
parents 2b4929069763
children 5916162c1bd3
comparison
equal deleted inserted replaced
27698:2b4929069763 27699:31a477d77c57
2739 u= av_clip_uint8((RU*r + GU*g + BU*b + (257<<(RGB2YUV_SHIFT-1)))>>RGB2YUV_SHIFT); 2739 u= av_clip_uint8((RU*r + GU*g + BU*b + (257<<(RGB2YUV_SHIFT-1)))>>RGB2YUV_SHIFT);
2740 v= av_clip_uint8((RV*r + GV*g + BV*b + (257<<(RGB2YUV_SHIFT-1)))>>RGB2YUV_SHIFT); 2740 v= av_clip_uint8((RV*r + GV*g + BV*b + (257<<(RGB2YUV_SHIFT-1)))>>RGB2YUV_SHIFT);
2741 c->pal_yuv[i]= y + (u<<8) + (v<<16); 2741 c->pal_yuv[i]= y + (u<<8) + (v<<16);
2742 c->pal_rgb[i]= b + (g<<8) + (r<<16); 2742 c->pal_rgb[i]= b + (g<<8) + (r<<16);
2743 } 2743 }
2744 src2[1]= (uint8_t*)c->pal_yuv;
2745 } 2744 }
2746 2745
2747 // copy strides, so they can safely be modified 2746 // copy strides, so they can safely be modified
2748 if (c->sliceDir == 1) { 2747 if (c->sliceDir == 1) {
2749 // slices go from top to bottom 2748 // slices go from top to bottom