@@ -423,11 +423,11 @@ static int scalecuda_resize(AVFilterContext *ctx,
break;
case AV_PIX_FMT_P010LE:
call_resize_kernel(ctx, s->cu_func_ushort, 1,
- in->data[0], in->width, in->height, in->linesize[0]/2,
+ in->data[0], in->width, in->height, in->linesize[0],
out->data[0], out->width, out->height, out->linesize[0]/2,
2);
call_resize_kernel(ctx, s->cu_func_ushort2, 2,
- in->data[1], in->width / 2, in->height / 2, in->linesize[1]/2,
+ in->data[1], in->width / 2, in->height / 2, in->linesize[1],
out->data[0] + out->linesize[0] * ((out->height + 31) & ~0x1f), out->width / 2, out->height / 2, out->linesize[1] / 4,
2);
break;