Revision e78df699

View differences:

libavcodec/imgconvert.c
242 242
   
243 243
    for(y=0;y<height;y+=2) {
244 244
        for(x=0;x<width;x+=2) {
245
            cb[0] = p[0];
246
            lum[0] = p[1];
247
            cr[0] = p[2];
248
            lum[1] = p[3];
245
            lum[0] = p[0];
246
            cb[0] = p[1];
247
            lum[1] = p[2];
248
            cr[0] = p[3];
249 249
            p += 4;
250 250
            lum += 2;
251 251
            cb++;
252 252
            cr++;
253 253
        }
254 254
        for(x=0;x<width;x+=2) {
255
            lum[0] = p[1];
256
            lum[1] = p[3];
255
            lum[0] = p[0];
256
            lum[1] = p[2];
257 257
            p += 4;
258 258
            lum += 2;
259 259
        }

Also available in: Unified diff