Revision e09d7eef

View differences:

libswscale/swscale_template.c
2109 2109
    assert(src1==src2);
2110 2110
    for (i=0; i<width; i++)
2111 2111
    {
2112
        int r= src1[6*i + 0] + src1[6*i + 0];
2113
        int g= src1[6*i + 1] + src1[6*i + 1];
2114
        int b= src1[6*i + 2] + src1[6*i + 2];
2112
        int r= src1[6*i + 0] + src1[6*i + 3];
2113
        int g= src1[6*i + 1] + src1[6*i + 4];
2114
        int b= src1[6*i + 2] + src1[6*i + 5];
2115 2115

  
2116 2116
        dstU[i]= (RU*r + GU*g + BU*b + (257<<RGB2YUV_SHIFT))>>(RGB2YUV_SHIFT+1);
2117 2117
        dstV[i]= (RV*r + GV*g + BV*b + (257<<RGB2YUV_SHIFT))>>(RGB2YUV_SHIFT+1);

Also available in: Unified diff