pix[0] += (h->param.i_height-1) * stride[0];
stride[0] = -stride[0];
}
- int b = i_csp==X264_CSP_RGB ? 2 : 0;
- h->mc.plane_copy_deinterleave_rgb( dst->plane[1], dst->i_stride[1],
- dst->plane[b], dst->i_stride[b],
+ int b = i_csp==X264_CSP_RGB;
+ h->mc.plane_copy_deinterleave_rgb( dst->plane[1+b], dst->i_stride[1+b],
+ dst->plane[0], dst->i_stride[0],
dst->plane[2-b], dst->i_stride[2-b],
(pixel*)pix[0], stride[0]/sizeof(pixel), i_csp==X264_CSP_BGRA ? 4 : 3, h->param.i_width, h->param.i_height );
}