Since xvblit blits the u and v planes 2 pixels at a time it needs to ensure that width always is a multiple of 2. Add support for planar yuv formats Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx> --- src/xvoutput.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xvoutput.c b/src/xvoutput.c index c5a80a0..c8f5ed3 100644 --- a/src/xvoutput.c +++ b/src/xvoutput.c @@ -232,6 +232,9 @@ static void xv_blit( uint8_t *dest, uint8_t *src, { uint8_t *y_dest, *u_dest, *v_dest, *src1; + /* We always copy 2 pixels at a time */ + width = (width + 1) & ~1; + /* Adjust src for x and y start coordinates */ src += y * input_width * 2 + (x & ~1) * 2; -- 2.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html