This patch resolves a problem in the sequencer where a cropped and scaled image will have a black border around it. This occurs because the cropped area is filled with the RGBA colour [0,0,0,0], which is "black transparency." When the image is scaled, the bilinear or bicubic interpolators will cause a black halo to appear around the cropped area.
To reproduce the issue it is sufficient to add two white color strips overtop of each other, with the top one given the "alpha over" blend mode. If this top strip is cropped and scaled up by 2x, a black border will appear around it when rendered. Attached here is a particularly extreme example where a cropped color strip is scaled 16x:
Blender file:
Render:
To resolve this issue, this patch modifies the input_preprocess function in render.c to only replace the alpha channel of the cropped area. This preserves the original colour of those pixels from before the crop.
